Add CSS for hover element without hiding the original element - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Add CSS for hover element without hiding the original element

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">
#item {<!--from   w w  w.  j a  v  a 2 s.  com-->
   background-color:Chartreuse;
   border-radius:51%;
   width:100px;
   height:100px;
   position:relative;
}

#item div {
   display:none;
}

#item:hover div {
   position:absolute;
   display:block;
   bottom:-41px;
   right:-51px;
}
</style> 
 </head> 
 <body> 
  <div id="item"> 
   <div>
     Lorem ipsum dolor si 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials