![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I inherited this huge app that has multiple stylesheets, all interacting with one another, |
|
divs inside of divs with different classes for each, tc. - - - you get the picture. |
|
we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? |
#3
| |||
| |||
|
|
I inherited this huge app that has multiple stylesheets, all interacting with one another, divs inside of divs with different classes for each, tc. - - - you get the picture. we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? |
#4
| |||
| |||
|
|
David Wier wrote: I inherited this huge app that has multiple stylesheets, all interacting with one another, I would be glad to argue that stylesheets aren't the kind of things that "interact" with each other, in a strict sense. There is some cascading (the "C" in "CSS") but I'm nervous about calling that an interaction between sheets. It's more like the *rules* are cascading, AIUI, but I expect that none of this is relevant to you, even if I've got it right. divs inside of divs with different classes for each, tc. - - - you get the picture. A URL would give us an even better picture. ;-) we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? Lots of ideas, and a couple of suspicions, but I won't bother sharing them (or testing them here in my browsers) until you point us to a URL (preferably of some minimalistic, valid code). -- John Jukka or somebody else may be along soon to comment about using classes named for their presumed effects, but I'm not going to mention such a thing. |
#5
| |||
| |||
|
|
I inherited this huge app that has multiple stylesheets, all interacting with one another, divs inside of divs with different classes for each, tc. - - - you get the picture. we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? |
#6
| |||
| |||
|
|
"John Hosking" <John (AT) DELETE (DOT) Hosking.name.INVALID> wrote in message news:4a33ca39$1_7 (AT) news (DOT) bluewin.ch... David Wier wrote: I inherited this huge app that has multiple stylesheets, all interacting with one another, I would be glad to argue that stylesheets aren't the kind of things that "interact" with each other, in a strict sense. There is some cascading (the "C" in "CSS") but I'm nervous about calling that an interaction between sheets. It's more like the *rules* are cascading, AIUI, but I expect that none of this is relevant to you, even if I've got it right. divs inside of divs with different classes for each, tc. - - - you get the picture. A URL would give us an even better picture. ;-) we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? Lots of ideas, and a couple of suspicions, but I won't bother sharing them (or testing them here in my browsers) until you point us to a URL (preferably of some minimalistic, valid code). -- John Jukka or somebody else may be along soon to comment about using classes named for their presumed effects, but I'm not going to mention such a thing. Sorry, but this section of pages is behind a subscription area and I can't make public, getting into that section I'm totally open to suspicions, etc or situations in which this would not work, though. Being behind a subscription area is meaningless. Open a browser, go to |
#7
| |||
| |||
|
|
I would be glad to argue that stylesheets aren't the kind of things that "interact" with each other, in a strict sense. There is some cascading (the "C" in "CSS") but I'm nervous about calling that an interaction between sheets. |
#8
| |||
| |||
|
|
In article <4a33ca39$1_7 (AT) news (DOT) bluewin.ch>, John Hosking <John (AT) DELETE (DOT) Hosking.name.INVALID> wrote: I would be glad to argue that stylesheets aren't the kind of things that "interact" with each other, in a strict sense. There is some cascading (the "C" in "CSS") but I'm nervous about calling that an interaction between sheets. I can understand you being nervous, I had a bad experience once. I heard a huge commotion and went outside to see what was happening. It was a terrible fight among stylesheets. I have seen men fighting, and I have seen the occasional fights between women, I have seen dogs and cats fighting and, I can tell you, nothing prepared me for this. Some of the later stylesheets were bullying the earlier ones. It got so bad that fights broke out within stylesheets and what made the whole thing quite vicious was that groups of the rules broke out of their normal gangs and viciously attacked rules in other gangs. Cascade indeed! Such a polite term. The reality is very different. It is a nasty brutish affair. They are dynamite. Best to have one or *very few* loyal gangs, with rules that get on nicely with each other. |
#9
| |||
| |||
|
|
Gazing into my crystal ball I observed David Wier writing in lWQYl.7579$mX2.3419 (AT) newsfe05 (DOT) iad>: Please do not top post. Posting corrected, see reply at bottom. "John Hosking" <John (AT) DELETE (DOT) Hosking.name.INVALID> wrote in message news:4a33ca39$1_7 (AT) news (DOT) bluewin.ch... David Wier wrote: I inherited this huge app that has multiple stylesheets, all interacting with one another, I would be glad to argue that stylesheets aren't the kind of things that "interact" with each other, in a strict sense. There is some cascading (the "C" in "CSS") but I'm nervous about calling that an interaction between sheets. It's more like the *rules* are cascading, AIUI, but I expect that none of this is relevant to you, even if I've got it right. divs inside of divs with different classes for each, tc. - - - you get the picture. A URL would give us an even better picture. ;-) we have 3 TextAlign classes we use throughout the site (left/right/center) In some areas, Inside a table we have a strange anomoly - if I hardcode style="text-align:center" for a paragraph inside a Table cell, it works. However - if I assign our TextAlignRight class in which the only line is "text-align:center", the text align directive is totally ignored (it aligns left). To add to the situation, if I use our TextAlignCenter class - that works! Any ideas on this (or situations you know of which will override something like this)? Lots of ideas, and a couple of suspicions, but I won't bother sharing them (or testing them here in my browsers) until you point us to a URL (preferably of some minimalistic, valid code). -- John Jukka or somebody else may be along soon to comment about using classes named for their presumed effects, but I'm not going to mention such a thing. Sorry, but this section of pages is behind a subscription area and I can't make public, getting into that section I'm totally open to suspicions, etc or situations in which this would not work, though. Being behind a subscription area is meaningless. Open a browser, go to the page in question, save it and upload it somewhere on a public server. If there is sensitve information in the content, then replace it with Lorum Ipsum text before doing so. -- Adrienne Boswell at Home Arbpen Web Site Design Services http://www.cavalcade-of-coding.info Please respond to the group so others can share |
#10
| |||
| |||
|
|
OK then - how about: http://augustwind.com/augustwind/test/csstest.htm |
![]() |
| Thread Tools | |
| Display Modes | |
| |