<div id="menu">
<ul><li><a href="#" class="current">SocialSpot</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Latest</a></li>
<li><a href="#">Settings</a></li>
<li>Logout</li>
</div>
</ul>
I have this in a webpage. I have css aligning them. However I want the logout button to be aligned to the right but on the same bar. How can I do this without having them all aligned to the right?
CSS:
Live demo: http://jsfiddle.net/simevidas/Rs4Sa/
Btw the
:last-childpseudo-class does not work in IE8 (and below). If you want it to work in those browsers, you will have to assign a class (e.g.right) to the Logout LI item, and then:Live demo: http://jsfiddle.net/simevidas/Rs4Sa/1/