Side navbar when position is "Fixed" - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Fixed Position

Description

Side navbar when position is "Fixed"

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">
#navbar {<!--from w  w w.  j  a va  2s .c om-->
   position:fixed;
   right:0;
   top:0;
}

ul {
   list-style-type:none;
   margin:0;
   padding:0;
   height:auto;
   width:71px;
   background:Chartreuse;
}

li a {
   display:block;
   color:yellow;
   padding:23.3px 11px;
   text-decoration:none;
   -webkit-transition:all 0.6s ease;
   transition:all 0.6s ease;
   -webkit-appearance:none;
}

li a:hover, li a:focus {
   background-color:blue;
   color:pink;
}
</style> 
 </head> 
 <body> 
  <div id="navbar"> 
   <ul> 
    <li> <a href="#">Lor<i class="fa fa-pagelines fa-2x"></i> </a> </li> 
    <li> <a href="news.asp">Lor<i class="fa fa-smile-o fa-2x"></i> </a> </li> 
    <li> <a href="contact.asp">Lor<i class="fa fa-envelope-o fa-2x"></i> </a> </li> 
    <li> <a href="about.asp">Lor<i class="fa fa-home fa-2x"></i> </a> </li> 
    <li> <a href="default.asp">Lor<i class="fa fa-plus-square fa-2x"></i> </a> </li> 
    <li> <a href="news.asp">Lor<i class="fa fa-bell-o fa-2x"></i> </a> </li> 
    <li> <a href="contact.asp">Lor<i class="fa fa-cog fa-2x"></i> </a> </li> 
    <li> <a href="about.asp">Lor<i class="fa fa-clock-o fa-2x"></i> </a> </li> 
    <li> <a href="about.asp">Lor<i class="fa fa-power-off fa-2x"></i> </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials