HTML CSS examples for CSS Widget:OL
Add horizontal scrollbar to <li>
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div#outer {<!--from w w w. j av a 2 s. com--> width:201px; overflow-x:scroll; white-space:nowrap; } .a, .c, .e, .g { background-color:Chartreuse; width:auto; } .b, .d, .f { background-color:yellow; } #in { width:501px; } </style> </head> <body> <div id="outer"> <div id="in"> <ol> <li class="a">Lorem ipsum dol</li> <li class="b"></li> <li class="c">Lorem ipsu</li> <li class="d">L</li> <li class="e">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamc</li> <li class="f">Lorem ipsu</li> <li class="g">L</li> </ol> </div> </div> </body> </html>