Display all sub-level lists inline with css - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Display all sub-level lists inline with css

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, ul {
   display:inline-block
}
</style> <!--   www  .  j  a va  2  s.c  om-->
 </head> 
 <body> 
  <ul> 
   <li>Lorem ipsum 
    <ul> 
     <li>Lorem ipsum</li> 
     <li>Lorem ipsum 
      <ul> 
       <li>Lorem ipsum</li> 
      </ul> </li> 
    </ul> </li> 
  </ul>  
 </body>
</html>

Related Tutorials