Hi dpeterson:
Yeah, I've been struggling with this as well.
I tried Stu Nicholls' version (
http://www.imaputz.com/cssStuff/bigFourVersion.html) but soon realized that, because the cell widths were hard-coded, the columns in the header & table body would become misaligned when viewed in different browsers.
As meloncholy suggested, I also looked at (
http://home.tampabay.rr.com/bmerkey/...le-header.html) but can't remember why I rejected it.
So, I modified the Sort-and-Lock table (
http://javascript.internet.com/misce...ock-table.html) by removing the sort feature [I didn't need it]. With this version, the header columns automatically line up with the table columns.
As you can see in my website-in-progress, (
http://cossa-wrestling.110mb.com/index-contacts.html), on Windows XP, the headers and footers remain in fixed positions in Firefox 1.5, 2, & 3 [as well as Netscape 9]. In MSIE7 Standalone, just the table headers remain static and in MSIE 6, the table scrollbars also disappear [I also have problems with the hideable divisions in MSIE 6]. In Safari 3.1.1 for Windows & Opera 9.5, the headers & footers scroll with the table content. Finally, in Opera 9.27 and Netscape 8, the table overflows its container & the associated page division, and so, fixed headers & footers are at present a moot point. What the website looks like in other operating systems, I have no idea... Sigh...the joys of cross-browser compatibility.
If you want the table code, give me a few days and I'll throw together a content-reduced version.
"...I'm trying to get the text to not wrap..."
The old HTML trick was to insert NOWRAP within the desired TD tag ["<TD NOWRAP>"] but this just forces the column to become larger and doesn't truncate the displayed text