Kryptix Posted December 22, 2011 Share Posted December 22, 2011 <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">Test</a> <ul> <li><a href="#">Test 1</a></li> <li><a href="#">Test 2</a></li> <li><a href="#">Test 3</a></li> </ul> </li> </ul> </nav> How would I style JUST the second level without styling the first? Quote Link to comment https://forums.phpfreaks.com/topic/253645-levels/ Share on other sites More sharing options...
AyKay47 Posted December 22, 2011 Share Posted December 22, 2011 1. assign it an id. 2. assign it a class. 3. if there are only two, you can use as your selector: (nav ul li:last-child) Quote Link to comment https://forums.phpfreaks.com/topic/253645-levels/#findComment-1300336 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.