HTML CSS examples for CSS Widget:Hover
Css hover to do information display
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .infodot {<!-- ww w .j av a 2 s.c o m--> position:relative; } .redinfo { background-color:Chartreuse; color:yellow; padding:11px; border-radius:6px; position:relative; width:281px; display:none; } .infodot:hover + .redinfo { display:block; } </style> </head> <body> <img src="https://www.java2s.com/style/demo/Firefox.png" class="infodot"> <p class="redinfo"> <strong>Lorem ipsum</strong>Lorem ipsum dolor sit am</p> </body> </html>