HTML CSS examples for CSS Widget:Hover to Show
Hover and hide another div
<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>