...

View Full Version : Scroll in a td ???



no way
01-01-2003, 06:56 PM
Hi !
Is there a way to have a scroll bar in a table cell ?
I have tried to limit the cell height, but it does not seem to help.
The tag "scrolling=yes" like for frames does not seem to work either...

(I want to have a table with 3 rows, total height =100%. Top and bottom rows always visible, no matter how long the content in the middle row is => scroll bar in middle row)


Any idea ?

Tks a lot
Fred

jkd
01-01-2003, 07:00 PM
style="overflow: scroll;"

no way
01-01-2003, 07:13 PM
well, thanks, .....
:rolleyes: but I do not get it...

Where should I write this. In the cell definition tag ?
<td valign="top" style="overflow: scroll;">

Fred.

mpjbrennan
01-01-2003, 07:29 PM
'overflow' is a CSS2 property. Does your browser support this?

patrick

no way
01-01-2003, 08:32 PM
I don't know if my browser supports this, but does it matter? If I programm a site, it's not only for my personnal use, but should be viewable with every browser....

Any solution to my problem within the HTML limits ?

Fred

redhead
01-01-2003, 08:37 PM
Originally posted by no way
[B]Any solution to my problem within the HTML limits?html on its own? nope. you wont get this to work in every browser like you said you wanted to, you could use an iframe if you want scrollable content, even then not every browser supports them.

no way
01-01-2003, 08:55 PM
Thank you...

:(

I guess Santa Claus is not coming to me this time...

Fred.

no way
01-01-2003, 08:59 PM
Anything in JS maybe ?
The thing is: I'm a beginner, but I've already heard frames are stone age. Not sure I should begin with something that will be ridiculous at the end anyway....
F.

chrismiceli
01-02-2003, 12:41 AM
just use an iframe, if it is just for your personal use.
javascript can't do this.

cg9com
01-02-2003, 01:02 AM
Originally posted by no way
well, thanks, .....
:rolleyes: but I do not get it...

Where should I write this. In the cell definition tag ?
<td valign="top" style="overflow: scroll;">

Fred.
yep

jkd
01-02-2003, 01:02 AM
overflow: scroll;

is fine for IE5+ (Win or Mac), NS6+ (and all Mozilla derivatives), Opera 5+, and probably Konqueror too.

I don't see the compatibility problem.

no way
01-04-2003, 11:28 PM
I have tried, still not better. I really feel stupid... can one of you guys have a look at the coding and tell me what's wrong ?
I have used <td valign="top" style="overflow: scroll;"> as advised.

http://www.geocities.com/verybadpage/page3.html

Tks a lot again
Fred :thumbsup:

Terry
01-05-2003, 12:46 AM
The overflow attribute does not work for the td tag. Just rap your content in that cell around a div tag, like so:

<td>
<div style="overflow: auto; height: 450px;">
your content
</div>
</td>

You have to give the div a height also. When the content reaches your pre-defined height limit it will add the scroll bar.

- Terry

no way
01-05-2003, 01:34 AM
Hey Terry, you're the best !!!

I could kiss you if my girl wouldn't be jealous ;-)

Tks a lot
Fred

Terry
01-05-2003, 03:31 AM
Hey no prob Fred
but I think I'll pass on the smooch....
I'm a dude :eek:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum