/ Published in: CSS
create css menus/lists with no top or bottom border
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
li:first-child { border-top: none; } li:last-child { border-bottom: none; } ul { width: 200px; background: #292929; color: white; list-style: none; padding-left: 0; } li { padding: 10px; border-bottom: 1px solid black; border-top: 1px solid #3c3c3c; }
URL: http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/