Change thead when tbody hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change

Description

Change thead when tbody 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">
#parent {<!--from w w w.  ja v  a2 s .  co m-->
   background:red;
}

#child {
   background:blue;
}

#parent:hover #child {
   background:green;
}

#child:hover #parent {
   background:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="parent">
    Lorem ip 
   <div id="child">
     Lorem i 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials