Horizontally-listed ul to overflow horizontally and scroll - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Horizontally-listed ul to overflow horizontally and scroll

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">
ul {<!--from  w w w . ja va 2  s . c  o  m-->
   width:401px;
   overflow-x:scroll;
   background:Chartreuse;
   white-space:nowrap
}

li {
   display:inline-block;
   *display:inline;
   zoom:2
}
</style> 
 </head> 
 <body> 
  <div> 
   <ul id="someList"> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
    <li>Lorem ips</li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials