Rotated text to create vertical navigation - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Rotated text to create vertical navigation

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">
#nav {<!--from   w w  w.j  a  v  a  2s.c o m-->
   float:left;
   background-color:Chartreuse;
   border-bottom:2px solid yellow;
   border-top:2px solid blue;
   line-height:0;
   width:100%;
}

#nav a {
   -webkit-transform:rotate(-91deg);
   -moz-transform:rotate(-91deg);
   -ms-transform:rotate(-91deg);
   -o-transform:rotate(-91deg);
   filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=4)
}

#nav a {
   float:left;
   width:6px;
   margin-top:121px;
   padding:11px 11px;
   text-decoration:none;
   font-weight:bold;
   color:pink;
}

#nav a:hover {
   color:OrangeRed;
   background-color:grey;
}
</style> 
 </head> 
 <body> 
  <div id="nav"> 
   <a href="#">Lorem ipsum dol</a> 
   <a href="#">Lorem ipsum </a> 
   <a href="#">Lorem ip</a> 
   <a href="#">Lorem </a> 
   <a href="#">Lorem </a> 
   <a href="#">Lorem ipsum </a> 
   <a href="#">Lorem ips</a> 
   <a href="#">Lorem i</a> 
  </div>  
 </body>
</html>

Related Tutorials