remove the space above and on the sides of the navigation bar - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

remove the space above and on the sides of the navigation bar

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor si</title> 
  <style>
body {<!--from   w w w  . j av a2 s .c  o m-->
   margin:0px !important;
}

nav {
   text-align:right;
   padding-right:0px;
   padding-top:0px;
}

ul {
   color:Chartreuse;
   background-color:yellow;
   padding-top:20px;
   padding-bottom:20px;
   padding-right:11px;
   list-style:none;
   margin-top:0px;
}

.sb {
   float:left;
}
</style> 
 </head> 
 <body> 
  <nav> 
   <ul> 
    <li> 
     <div class="sb"> 
      <input type="text" name="search"> 
      <input type="submit" name="search" value="search"> 
     </div> <a href="">Lorem </a> <a href="">Lorem ips</a> <a href="">Lorem ip</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials