hover span content from li - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

hover span content from li

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">
.container li span {
   display:none;
}

.container li:hover span {
   display:block;
}
</style> <!--from   w  w  w. j ava  2  s.c  om-->
 </head> 
 <body> 
  <ul class="container"> 
   <li class="icons_27"> <span class="data_27">Lorem ipsum dolor</span> </li> 
   <li class="icons_28"> <span class="data_28">Lorem ipsum dolor </span> </li> 
  </ul>  
 </body>
</html>

Related Tutorials