Scroll in a div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

Scroll in a div

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">
#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>

Related Tutorials