HTML CSS examples for CSS Widget:UL Horizontal
Horizontally-listed ul to overflow horizontally and scroll
<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>