Hover to show more content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Hover to show more content

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">
a.anchor {<!--  w  ww . jav a  2 s . c o  m-->
   text-decoration:none;
   display:inline-block;
   cursor:default;
   background:Chartreuse;
   color:yellow;
}

a.anchor:hover span {
   display:inline-block;
}

a.anchor span {
   display:none;
}
</style> 
 </head> 
 <body> 
  <a class="anchor" href="#">Lorem ipsum dolor s<span>Lorem ips</span> </a>  
 </body>
</html>

Related Tutorials