Display a list inline - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Display a list inline

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w w w  .j  a v  a  2s.  co  m-->
 <body> 
  <p> </p> 
  <ul style="display:inline; list-style-type: none;"> 
   <li style="background:url('no-color.png') repeat !important; padding:5px; display:inline;">Lorem ips</li> 
   <li style="background:none repeat scroll 0 0 rgba(255, 57, 65, 0.9) !important;padding:5px;display:inline;">Lorem ips</li> 
   <li style="background:none repeat scroll 0 0 rgba(255, 103, 57, 0.9) !important;padding:5px;display:inline;">Lorem ipsum d</li> 
   <li style="background:none repeat scroll 0 0 rgba(255, 218, 57, 0.9) !important;padding:5px;display:inline;">Lorem ip</li> 
   <li style="background:none repeat scroll 0 0 rgba(193, 241, 78, 0.9) !important;padding:5px;display:inline;">Lorem i</li> 
   <li style="background:none repeat scroll 0 0 rgba(29, 195, 246, 0.9) !important;padding:5px;display:inline;">Lorem ipsum</li> 
   <li style="background:none repeat scroll 0 0 rgba(29, 195, 246, 0.9) !important;padding:5px;display:inline;">Lorem </li> 
  </ul> 
  <p></p>  
 </body>
</html>

Related Tutorials