What is the selection syntax for selecting a tag inside an identifier via a class name? For example, what do I need to choose below so that the inner "li" turns red?
<html> <head> <style type="text/css"> #navigation li { color: green; } #navigation li .navigationLevel2 { color: red; } </style> </head> <body> <ul id="navigation"> <li>Level 1 item <ul class="navigationLevel2"> <li>Level 2 item</li> </ul> </li> </ul> </body> </html>
css css-selectors
Jeremy Jul 16 '09 at 22:23 2009-07-16 22:23
source share