Show a div over another when resizing on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Show a div over another when resizing 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">
.box {<!--from  w  w  w . j  a  v  a2s. co m-->
   float:right;
   width:201px;
   height:201px;
   margin-top:11px;
   background-color:Chartreuse;
   border:2px solid;
   margin-top:31px;
}

.box:hover {
   width:251px;
   height:251px;
   margin-left:-26px;
   position:relative;
   margin-right:-26px;
   margin-top:6px;
   transition:all 201ms ease-in-out 0s;
}
</style> 
 </head> 
 <body> 
  <div class="box"></div> 
  <div class="box"></div> 
  <div class="box"></div> 
  <div class="box"></div>  
 </body>
</html>

Related Tutorials