Hovering over a divs with a different z-indexes - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hovering over a divs with a different z-indexes

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">
#A{<!--from  w w  w  .ja  va 2s.  com-->
}
#A:hover {
}
#C {
   position:absolute;
   width:51%;
   height:51%;
   left:26%;
   top:26%;
   background-color:Chartreuse;
}

#C:hover {
   background:blue;
}

#B {
   position:absolute;
   width:100%;
   height:100%;
   top:0%;
   left:0%;
   background-color:yellow;
}

#B:hover {
   background:red;
}
</style> 
 </head> 
 <body> 
  <div id="A"> 
   <div id="B"></div> 
   <div id="C"></div> 
  </div>  
 </body>
</html>

Related Tutorials