HTML CSS examples for CSS Widget:Div
Scroll in a div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #scrollable {<!--from w w w . jav a2 s . com--> background:Chartreuse; height:151px; overflow-y:scroll; } </style> </head> <body> <div id="scrollable"> <ul> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> <li>Lorem i</li> </ul> </div> </body> </html>