Css hover to do information display - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Css hover to do information display

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">
.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>

Related Tutorials