HTML CSS examples for CSS Widget:Nav Bar
Navigation bar with black background
<html> <head> <style> ul {<!--from w ww . j a v a 2s .c o m--> list-style-type:none; margin:0; padding:0; overflow:hidden; background-color:Chartreuse; } li { float:left; } li a { display:block; color:yellow; text-align:center; padding:15px 17px; text-decoration:none; } li a:hover { background-color:blue; } </style> </head> <body> <ul> <li> <a class="active" href="#home">Lore</a> </li> <li> <a href="#news">Lore</a> </li> <li> <a href="#contact">Lorem i</a> </li> <li> <a href="#about">Lorem</a> </li> </ul> </body> </html>