Nav and ul vertical and horizontal - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Nav and ul vertical and horizontal

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--from w w  w.j  a  v a2s. c om-->
   margin:0;
   padding:0;
}

aside {
   position:absolute;
   right:0;
}

#slidebar ul {
   margin:0;
   padding:0;
}

#slidebar li {
   display:block;
}

#slidebar a {
   display:inline-block;
}

#sidebar a:link {
   color:Chartreuse;
}

#sidebar a:hover {
   color:yellow;
}

#navbar_text a:link {
   color:blue;
}

#navbar_text a:hover {
   color:pink;
}

#navbar_text {
   width:100%;
   margin:0;
   padding:0;
}

#navbar_text li {
   float:left;
   list-style:none;
   padding:0;
   background:OrangeRed;
   margin:0;
   color:grey;
}

nav ul li a {
   display:block;
   padding:11px 11px 11px 16px;
   background:BlueViolet;
   -webkit-border-radius:9px 0px 0px 9px;
   border-radius:9px 0px 0px 9px;
   margin-top:11px;
   font-family:Georgia, "Times New Roman", Times, serif;
   font-size:121%;
   font-weight:bold;
   color:Chartreuse;
   text-decoration:none;
   -webkit-box-shadow:3px 3px 2px 3px yellow;
   box-shadow:3px 3px 2px 3px blue;
}

nav ul {
   list-style:none;
   margin:0;
   padding:0;
}

.clr_both {
   clear:both;
}
</style> 
 </head> 
 <body> 
  <nav id="navbar_text"> 
   <ul> 
    <li> <a href="index.html">Lore</a> </li> 
    <li> <a href="aboutus.html">Lorem</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
   </ul> 
  </nav> 
  <div class="clr_both"></div> 
  <div id="main-wrap" class="group"> 
   <aside> 
    <nav id="sidebar"> 
     <ul> 
      <li> <a href="contact.html">Lorem ipsu</a> </li> 
      <li> <a href="#">Lorem ipsum dolor</a> </li> 
      <li> <a href="#">Lorem ipsum </a> </li> 
      <li> <a href="#">Lorem ipsum d</a> </li> 
     </ul> 
    </nav> 
   </aside> 
  </div>  
 </body>
</html>

Related Tutorials