Jump to content


This topic is now archived and is closed to further replies.


static table header

Recommended Posts

Hi all

Back to basics again....

I'm trying to come up with the best solution for laying out a table of an unknown height. My tables are currently being used for presenting a list, with x amount of columns. The table has a <TH> header.
Now - whether my table has 2 rows or 1000 rows, I want it all restricted into a 100%x200px box.
I've thrown my table into a 200 pixel high <DIV> which works to an extent. However, I want my TH to stay visible.

The only way I can get it to work is to split the list into two tables - one for the header, and one (contained in a DIV) for the data, however, even if i specify column widths, the column labels in the header to not align properly (or neatly) with my data.

THEAD, TBODY, etc worked to an extent, but no matter what i did, i got an ugly horizontal scroll bar which I really don't want. if i could get rid of the scrollbar along the bottom and keep the one on the right, then TBODY would be perfect.

does anyone have any ideas?
my target client is using a mixture of FF1.5 and IE6 so as long as it works in those, i don't mind for general compatibility.


Share this post

Link to post
Share on other sites
[!--quoteo(post=359218:date=Mar 28 2006, 12:07 PM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Mar 28 2006, 12:07 PM) [snapback]359218[/snapback][/div][div class=\'quotemain\'][!--quotec--]

ok one more go ... anyone?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.