Hallo!

Please consider this test code:

******************
<html>
<head>
<title>CSS Test</title>
<style>
div.a div.x {color:Red}
div.b div.x {color:Green}
div.x {color:Blue}
</style>
</head>
<body>
<div class="a">
<div class="b">
<div class="x">
Test
</div>
</div>
</div>
</body>
</html>
******************

In both MSIE8 and Firefox 3.0.11 this renders as green, while I'd
expect blue. What is the reason for this rule precedence? Can I make
the div.x rule stronger than the other?

Thanks!

Passiday

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to