Padding a navbar element on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Padding a navbar element on hover

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">
div {<!--from  w  w w .  java2s  .c  o m-->
   height:3em;
   width:7em;
   border-radius:6px;
   background-color:Chartreuse;
   display:inline-block;
   vertical-align:top;
}

div:hover {
   padding-top:3em;
}
</style> 
 </head> 
 <body> 
  <div>
    Lorem ips 
  </div> 
  <div>
    Lorem ips 
  </div> 
  <div>
    Lorem ips 
  </div> 
  <div>
    Lorem ips 
  </div>  
 </body>
</html>

Related Tutorials