HTML CSS examples for CSS Widget:Hover to Show
Show DIV on hover of other DIV
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .field-1 {<!-- ww w . j a v a 2 s .co m--> width:151px; height:151px; display:block; background-color:Chartreuse; } .field-2 { background-color:yellow; display:none; } .field-1:hover + .field-2 { display:block; } </style> </head> <body> <div class="field-1"></div> <div class="field-2"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum </div> </body> </html>