How can I remove a <ul> unordered list's last <li> list item's border using CSS without adding any class to the last list item?
See live example here: http://jsbin.com/umose
body { background-color: #fff; font: 16px Helvetica, Arial; color: #000; } li { display: inline; list-style-type: none; padding:0 20px 0 20px; border-right:1px solid green; } #navlist li:last-child { border-right: ; } <p id="hello"></p> <ul id="navlist" > <li ><a href="#" id="current">Item one</a></li> <li id="active"><a href="#">Item two</a></li> <li><a href="#">Item three</a></li> <li><a href="#">Item four</a></li> <li><a href="#">Item five</a></li> </ul>