Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make the headers of a table float over the table

Status
Not open for further replies.

dillpick6

Programmer
Jun 5, 2003
11
US
In essence, I was wondering if it is possible to have the headings of a table float down over the contents of the table as the user scrolls down.
My first instinct was to just use frames, but I have a problem there. My table does not fit on the page, so if a user scrolls left or right, the heading wouldnt be aligned anymore. So I would then need a way to make the bottom and top frame scroll together in unison. I figured that would be a job for java, but I have never used nor want to put in the effort to learn it if possible.
Any input would be more than appreciated. Thanks to all!
 
Suggestions:

You could use something like overLib ( to show the column heading onMouseOver.

You could give the user the ability to hide rows rather than scroll.

You could reprint the header row every 20 or so table cells.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
In response to cian
Do you, or does anyone else know that say I had a table, set up my headers, then did the div tag to make the rest of the table scrolling, would that work or would it break the table?
Thank again
 
Sorry, I also meant to ask if this would solve the problem that if one cell had a lot of information, it grows, causing it to be unaligned with the header.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top