Sunday, January 9, 2011

HTML CSS - Scrollbar to be added to a div

Just came across a requirement where I had to use the scroll bar with a div.

I used the following to put the same:

<div style="overflow:auto;height:200px;width:500px;">
-----
-----
-----
</div>

This works fine and looks cool.

No comments:

Post a Comment