Forum Moderators: open

Message Too Old, No Replies

Scrollable table

can I make a table scrollable

         

smokeyb

1:06 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



I have recently embarked on changing a site using a frameset, to one that uses templates and CSS (PS thanks to everyone who helped my last post on this issue). I have an editable content region in the template for... content, and I use a style with one table holding everything for my pages. The problem is I have made the template, contract and expand to fit all sizes of screen rez, so no srolling should be necessary of this layout page (the reason I liked framesets, is that all your navigation stays on screen at all times). Now if I make one of my content pages longer than can be viewed by whichever resolution, the whole page scrolls down, and you have to scroll back up to the nav-bar. Now, I know I can duplicate links at the bottom of the page so you can continue without scrolling, but I have a fancy nav-bar which I would prefer people to navigate from (I suppose I could always copy this down instead... which may be interesting...) but ideally I would like the content region to scroll instead? I guess that to do this, I would have to make the table in my content pages scroll before applying the template? is this possible? or is there something I can do with the CSS?
Enormous thanks in advance
Smokey

dcrombie

1:41 pm on Nov 23, 2003 (gmt 0)



In CSS2 you can use overflow:auto to generate this effect. CSS2 is not properly supported by all browsers so the effects can be ... interesting. There are some recent threads on this in the CSS forum.