html - How to style an <a> tag within an <li> -


say have html this..

<ul id="menu">   <li class="menu-item-1">     <a>cateogry 1</a>   </li>   <li class="menu-item-2">     <a>category 2</a>   </li> </ul> 

the thing i'm trying style each "li" element area, want style invidual items. can't change classes generic.

i tried

ul#menu li.a  

but no dice. have include indivdual class of li in order each "a", or there way say, every single li, regardless of class, has "a" in it.. want style it..

um... don't know how explain without risk of being rude, know how select li elements inside ul... same a:

ul#menu li 

that said, should use selector:

#menu>li>a 

this because ids must unique, because won't interfere if decide add nested lists later.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -