Hover and hide another div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Hover and hide another div

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 {<!--   w  w w .jav  a 2 s. co  m-->
   height:301px;
   width:301px;
   background:red;
}

.hidden {
   height:100px;
   width:100px;
   background:white;
   display:none;
}

.box:hover .hidden {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div class="box"> 
   <div class="hidden">
     Lorem ipsum d 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials