css - Targeting li elements? -


i have:

<ul>  <li></li>  <li></li>  <li></li>  <li></li>  <li></li> </ul> 

i want add different width each li.

i don't want inline.

how can target each li using css2 (not css3)?

is there way or need give each li class name?

thanks

you can use comb css have add class each li in css e:g-

li {} li + li {} li + li + li {} li + li + li + li {} li + li + li + li + li {} 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -