Forum Moderators: open

Message Too Old, No Replies

want table headers not to scroll while rows do

         

Bostonrose

6:48 pm on Nov 6, 2002 (gmt 0)



I have a table with 7 headers across and then a number of rows below that. The number of rows can become more than a page full, and I want the table headers to stay at the top of the page while the row data scrolls. Anyone have info on how to do this. Thanks, Boston rose

korkus2000

6:57 pm on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could either position the headers with css or use frames. The headers wont be in the same table but you can make it look that way. It will take a little javascript to get the positioning to move during the scroll.

here are some tutorials on css Positioning
[webreference.com...]
[hotwired.lycos.com...]
[developer.netscape.com...]
[w3schools.com...]

Bostonrose

7:11 pm on Nov 6, 2002 (gmt 0)



Thanks for the info, I'm a little familiar with css, but have just taken over supporting this site and it already has frames which I'm not at all familiar with. I will look at the references you gave for css, but I don't have a clue about how to write java script to accomplish this. I've only done form validation with javascript. Is there somewhere I can go to find out about the javascript piece. Thanks again. Bostonrose

korkus2000

7:20 pm on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this one www.javascriptkit.com/javatutors/static.shtml

Bostonrose

7:30 pm on Nov 6, 2002 (gmt 0)



Thanks, looks like just what I needed. Bostonrose

tedster

11:15 pm on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You also might want to consider iframes for your purpose. It sounds to me like that might be the easiest route to the effect you want.