Click to See Complete Forum and Search --> : Scrollbars in tables


AndyP
06-17-2003, 05:33 AM
I'm making a website, and i have a table which shows site updates.

However, instead of making the page huge with updates, i'd like to have a scroll bar inside the table, to scroll up and down that table only, i've seen this done on another website, but i'm not sure how.

Can anyone help?

adivishnun
06-17-2003, 06:15 AM
Hi,
Consider using IFRAME. You can decide width and height how much u want and what content goes inside this IFRAME.

if its simple update (plain text) then look for TEXTBOX tag. I hope its of some use.

thx - vish

DaveSW
06-17-2003, 07:05 AM
Another alternative is putting your table inside a div like this

<div style="width:100px; height:50px; overflow:auto;>
<table...></table>
</div>

this will not require a new page for your table, unlike the iframe element.

Dave

PeOfEo
06-17-2003, 12:34 PM
woudn't that put the scroll bar just outside of the table though :)

AndyP
06-17-2003, 07:08 PM
Thanks to all users who replied

Re: the <textbox> tag
Thanks for the idea, but the text, and background are formatted with CSS styles.

The table was already in a div, i just added that overflow style and it works great, thanks. One more thing though, can i edit the scroll bar attributes like colour, like i could on the main page scrollbars?

Thanks in advance

edit: never mind, i found out myself, simple really :)

adivishnun
06-17-2003, 08:05 PM
hi,
I am also looking for the scrollbars prob.
check the thread 'CSS SCROLLBARS' under CSS section.
thx - vish