HTML CSS examples for CSS Widget:Nav Bar
Navigation separators using only CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .innerNav li {<!-- ww w . j av a2 s . c om--> display:inline-block; border-bottom:4px solid Chartreuse; margin-left:11px; position:relative; } .innerNav li:before { content:"|"; position:absolute; left:-9px; color:yellow; border:0; padding-right:11px; } .innerNav li:first-child:before { display:none; } .oldWay li { display:inline-block; border-bottom:4px solid blue; } .oldWay li.seprator { display:inline-block; border:0; padding:0 6px; } </style> </head> <body> <h3>Lorem ipsum dolor sit amet, c</h3> <nav class="innerNav"> <ul> <li>Lore</li> <li>Lor</li> <li>Lorem</li> <li>Lore</li> </ul> </nav> <!-- below just for illustration purposes --> <h3>Lorem ipsum dolor sit amet, consectetur</h3> <nav class="oldWay"> <ul> <li>Lor</li> <li class="seprator">L</li> <li>Lor</li> <li class="seprator">L</li> <li>Lorem</li> <li class="seprator">L</li> <li>Lore</li> </ul> </nav> </body> </html>