Tuesday, 10 April 2012

How to make a div scrollable

<style type="text/css">
div.scroller
{
       overflow: scroll;
       width:300px;
       height:500px;
}
</style>
...
<div id="scroller"></div>

The scroller property is controlled via css. You won't see the scroll bars unless their is a width and height to your div.

No comments:

Post a Comment

Please enter your message here...