Horizontal Menu Displays Incorrect on Widescreen Monitor - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Horizontal Menu Displays Incorrect on Widescreen Monitor

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.nav-item {<!--  w ww  .j a v  a2 s .co m-->
   font-size:3em;
   margin-left:176px;
}

.nav-item a {
   color:Chartreuse;
}

.nav {
   list-style-type:none;
   padding:0;
   margin:auto;
   width:745px;
}

.nav li {
   list-style-type:none;
   float:left;
   display:inline;
}

#first-item {
   margin-left:0px !important;
}

.menu {
   width:961px;
   height:41px;
   margin:auto;
}
</style> 
 </head> 
 <body> 
  <div class="menu"> 
   <ul class="nav"> 
    <li class="nav-item" id="first-item"> <a href="/why-us.php">Lorem </a> </li> 
    <li class="nav-item"> <a href="/links.php">Lorem</a> </li> 
    <li class="nav-item"> <a href="/contact.php">Lorem i</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials