CSS navigation bar indication with bottom border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

CSS navigation bar indication with bottom border

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  ww w  .jav a 2 s . co m-->
   width:76%;
   background-color:Chartreuse;
   margin-left:auto;
   margin-right:auto;
   margin-top:16px;
}

.navbar a:link, a:visited {
   background-color:yellow;
   color:blue;
   text-decoration:none;
   text-transform:uppercase;
   border-right:3px solid pink;
   font-weight:bold;
   font-family:verdana;
   font-size:38px;
   text-align:center;
   padding-left:6px;
   padding-right:6px;
}

.navbar a:hover, a:active, a:focus {
   background-color:OrangeRed;
   text-decoration:underline;
}

a#current:link, a#current:visited {
   background-color:grey;
}
</style> 
 </head> 
 <body> 
  <div class="navbar"> 
   <a href="home.html" id="current">Lorem</a> 
   <a href="about.html">Lorem</a> 
   <a href="store.html">Lorem</a> 
   <a href="contact.html">Lorem i</a> 
  </div>  
 </body>
</html>

Related Tutorials