HTML CSS examples for CSS Widget:Hover to change
Change thead when tbody hover
<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>