Hover to add underline - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Hover to add underline

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">
.hoverable:hover {<!--from   w  ww  .  ja  va 2s.co m-->
   text-decoration:underline;
}

.nowrap {
   white-space:nowrap;
}

.wrappable {
   white-space:normal;
}
</style> 
 </head> 
 <body> 
  <span class="nowrap"> <span class="hoverable"> <span class="wrappable">Lorem ipsum dolor sit amet, consectetur adip</span>Lorem </span> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" style="width:102px;height:80px"> </span>  
 </body>
</html>

Related Tutorials