HTML CSS examples for CSS Widget:Nav Bar
Li:after in horizontal navigation bar with triangular arrow
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #navi {<!--from w w w .ja va 2 s . c o m--> list-style:none; padding:0.6em; } #navi li { float:left; display:inline; list-style-type:none; } #navi li a { display:inline-block; font-weight:normal; font-size:14px; color:Chartreuse; padding:0.3em 2em; text-decoration:none; } #navi li a:hover, #navi li a:active { background:yellow; color:blue; text-decoration:none; } #navi li a.selected { background:pink; color:OrangeRed; text-decoration:none; } #navi li:after { content:"\26B7"; } #navi li:last-of-type:after { content:""; } </style> <script type="text/javascript"> </script> </head> <body> <ul id="navi"> <li> <a href="">Lor</a> </li> <li> <a href="">Lor</a> </li> <li> <a href="">Lor</a> </li> </ul> </body> </html>