Re: [css-d] question about style inheritance

2008-01-11 Thread Josh Ghiloni
Thank you for your response, Jukka (you too Highpowered!) Both of them were very helpful. Given that I'm required to support IE 6 (shudder) among other browsers, it seems the attribute selector method is not the way to go (I need to remember to test on IE 6 more often -- time to change some of my e

Re: [css-d] question about style inheritance

2008-01-11 Thread Jukka K. Korpela
Josh Ghiloni wrote: > I have a bit of code that, for example, looks like this: > > > div { color: blue } > div[dir="rtl"] { color: red } > First of all, I'd like to say that most "questions about style inheritance" aren't. In you example, there is no way in which any div element could inherit

Re: [css-d] question about style inheritance

2008-01-11 Thread Highpowered
Josh Ghiloni wrote: > Hi All. > > I have a bit of code that, for example, looks like this: > > > div { color: blue } > div[dir="rtl"] { color: red } > > > > hi! > bye! > > > As I somewhat expected, the outer (hi!) text rendered red, whereas the > inner child is rendering blue. Is there a wa

[css-d] question about style inheritance

2008-01-11 Thread Josh Ghiloni
Hi All. I have a bit of code that, for example, looks like this: div { color: blue } div[dir="rtl"] { color: red } hi! bye! As I somewhat expected, the outer (hi!) text rendered red, whereas the inner child is rendering blue. Is there a way I can define my styles such that div[dir="rtl"] an