I am trying to complete a navigation list that is contained in a div.
I found that each element has a border to the right of each element. I am looking for this border only for middle elements, not for the last element.
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 achieve this? Give the last element a unique class and create another CSS entry?
source share