Forum Moderators: open

Message Too Old, No Replies

idea of scrolling?

         

orion_rus

11:46 pm on Dec 4, 2005 (gmt 0)

10+ Year Member



Hello world i need to make following.
I have to div's. And i make scrolling one on another. All works great.
But now i need to make following.
I need to build structure like this:
--------
¦ ¦
¦ ^ ¦
¦ ¦ ¦
¦ t ¦
¦ e ¦
¦ x ---¦
¦ t ¦ ¦
--------

and text make floating of this rectangle too.
Can anybody help me?

JAB Creations

11:46 pm on Dec 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure exactly what you're after but scrolling divs sounds like overflow to 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.