HTML CSS examples for CSS Widget:Nav Bar
Customize navbar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #navbar {<!-- w w w . j a va2 s . co m--> text-align:center; text-decoration:none; } body { text-align:center; } #header { position:relative; text-align:center; } ul { height:auto; } li { display:inline-block; border:3px solid Chartreuse; padding-top:2.563em; padding-bottom:2.563em; padding-left:7.26em; padding-right:7.26em; border-radius:6px 6px; background-color:yellow; } </style> </head> <body> <div id="header"> <div id="navbar"> <ul> <li> <a href="#About Me">Lo</a> </li> <li> <a href="#Work">Lore</a> </li> <li> <a href="#Contact">Lorem i</a> </li> </ul> </div> </div> </body> </html>