Forum Moderators: open
and text make floating of this rectangle too.
Can anybody help me?
CSS
div.scroll
{
border: #f0f;
height: 200px;
overflow: auto;
width: 200px;
}
HTML
<div class="scroll">
<p>put enough content here to overcome height and width in order to make this div scroll.</p>
</div>
To make overflow work you have to specify the height and width (I believe by pixels not percentage) otherwise the browser will not know how far it can max out before you want the div to be forced to scroll the content.