HTML CSS examples for CSS Widget:Nav Bar
Relayout navbar when minimizing browser window
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #navBar {<!--from w ww . j a va2s . c o m--> width:100%; background-color:Chartreuse; left:0; overflow:hidden; } #navBar ul { margin:0 auto; height:66px; list-style:none; } #navBar li { float:left; height:66px; } #navBar li a:link , a:visited { font-size:91%; display:block; color:yellow; padding:21px 26px; font:19px "open sans", sans-serif; font-weight:bold; text-decoration:none; } #navBar li a:hover { background-color:blue; color:pink; text-decoration:none; } </style> </head> <body> <nav> <div id="navBar"> <ul> <li> <a href="">Lorem i</a> </li> <li> <a href="">Lorem i</a> </li> <li> <a href="">Lorem ipsum dolor si</a> </li> <li> <a href="" id="logimine">Lorem ipsu</a> </li> </ul> </div> </nav> <div class="content"> <div id="logo"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="Gaming website logo" height="84" width="540"> </div> </div> <div class="artikkel"> <p>Lorem ipsum</p> </div> </body> </html>