Forum Moderators: open

Message Too Old, No Replies

Scroll box within browser

problem putting my table content into a scrolling box

         

sysflow

10:24 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



I am having a problem putting my table content into a scrolling box. I want to use a scrolling box because my table content is fairly long an I do not want to be able to scroll the main browser - I just want a small scrolling box inside my webpage.

I am using the following code and it works fine with IE 6.0, but does not work with Firefox 1.0.
Is there an alternative way in which I can put my table into a vertical scrolling box?

Here's the code I'm using:

<div style="height:100px;width:710px;overflow-y:scroll;border:1px solid #000066;>
<table>
Html code here...
</table>
</div>

I've tried looking for other snippets of code, such as Javascript, DHTML, etc. but have not found one that is fairly easy to impliment and does exactly what I need. Any suggestions would be appreciated. Thanks.

birdbrain

11:21 pm on Feb 21, 2005 (gmt 0)



Hi there sysflow,

and a warm welcome to these forums.;)

overflow-y:scroll

...is I.E. only, try instead...

overflow:auto

birdbrain

sysflow

4:21 pm on Feb 22, 2005 (gmt 0)

10+ Year Member



That worked.

thank you