In this condition is it possible to not to apply margin-right
to last li
.
I need pure css way and support in IE6 and 7 also and without changing HTML. is there any way to achieve this.
ul li {display:inline;margin-right:10px}
<ul id="nav">
<li><a href="#nowhere" >Lorem</a></li>
<li><a href="#nowhere" >Aliquam</a></li>
<li><a href="#nowhere" >Morbi</a></li>
<li><a href="#nowhere" >Praesent</a></li>
<li><a href="#nowhere" >Pellentesque</a></li>
</ul>