Remove specific style for last li inside ul

by satheeshkumar 2014-02-21 12:45:32

Remove specific style for last li inside ul ,

To remove the specific style for the last li used inside ul,

For ex,
<ul class='color'>
<li>Home</li><li>Contact</li>
</ul>

In the above code the common style background-color will apply for all the li,so in order to remove style for the last li use,

ul.color li
{
background-color: #4e4e4e;
}
ul.color li: last-child
{
background: none;
}

Tagged in:

443
like
0
dislike
0
mail
flag

You must LOGIN to add comments