Change list-style-type if it has a hyperlink - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Change list-style-type if it has a hyperlink

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">
li {<!--from   w w  w  .  ja v  a  2 s  . c o  m-->
   list-style-type:circle;
}

li:hover a {
   display:list-item;
   list-style-type:disc;
}
</style> 
  <script type="text/javascript">

      </script> 
 </head> 
 <body> 
  <ul> 
   <li> <a href="jsfiddle.net">Lore</a> </li> 
   <li>Lorem ipsum</li> 
  </ul>  
 </body>
</html>

Related Tutorials