I am trying to complete a navigation list that is contained within a div.
I have it set to have a border on the right of each item to space out each item. I am looking to have this border only on the middle items and not on the last item.
HTML:
<div id="container-navigation"> <ul id="navigation"> <li><a href="index.html" target="_self">home</a></li> <li><a href="aboutus.html" target="_self">about</a></li> <li><a href="solutions.html" target="_self">solutions</a></li> <li><a href="training.html" target="_self">training</a></li> <li><a href="payments.html" target="_blank">payments</a></li> <li><a href="contact.html" target="_self">contact</a></li> </ul> </div> CSS:
#navigation li a { color: #ffffff; line-height: 22px; font-size: 11px; text-decoration: none; padding: 5px 15px 6px 15px; border-right: 1px solid #ffffff; } What would be the best way to accomplish this? Give the last item a unique class and create another CSS entry?