Make a rich tooltip with a HTML form - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Make a rich tooltip with a HTML form

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum dolo</title> 
  <style>
p {<!--   w  w w  .  j a v a  2  s .  c  o  m-->
   position:relative;
   display:block;
   margin:11px;
   padding:26px;
   width:601px;
   height:201px;
   background-color:Chartreuse;
}

.tooltip {
   position:absolute;
   display:none;
   top:0;
   left:0;
   right:0;
   margin:0 auto;
   width:100px;
   background-color:yellow;
}

a:hover~.tooltip {
   display:block;
}
</style> 
 </head> 
 <body translate="no"> 
  <p>Lorem ipsum dolor sit amet, consecte<a href="#">Lorem ip</a> <span class="tooltip">Lorem ipsum dol</span>Lorem ipsum dolor sit amet, consecte</p>  
 </body>
</html>

Related Tutorials