Hi All.

I have a bit of code that, for example, looks like this:

<style type="text/css">
div { color: blue }
div[dir="rtl"] { color: red }
</style>

<div dir="rtl">
hi!
<div>bye!</div>
</div>

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"] and any children (at any level and whose dir
is not explicitly "ltr") all match the same style? Alternatively, is
it bad form to not explicitly set the dir attribute on the divs inside
a div whose dir attribute is "rtl"?

Thanks a lot!

-- 
Internets. Serious business.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to