user2091061 user2091061 - 1 year ago 77
CSS Question

Make an item in list align to right using CSS3

I have a list as follows :

<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Work</a>
<li><a href="#">CSS Development</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Development Tools</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Feedback</a></li>

I am attaching image of so far what i have done..

In this menu,I want to align feedback to right side.
Can anyone tell how to do it?

Answer Source

Add this to your Css.

li:last-child will select the last li of the menu list.


#menu > li:last-child
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download