A Digital Age Deserves A Digital Leader

Table with fixed headers

Table with fixed headers

Postby gries818 » Sat Feb 07, 2009 1:50 am

Does anybody know how to make a table that has fixed headers so if I make it scrollable, the headers won't move? I've tried everything with no success.

Thanks!
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Re: Table with fixed headers

Postby kanaloa » Sat Feb 07, 2009 3:17 am

I'm not sure you can do that in XHTML, the page will scroll. You'd have to do that in flash or use a graphic/table at the top of the table with an iframe or something I'd think.
"Greatness is not a function of circumstance. Greatness, it turns out, is largely a matter of conscious choice, and discipline." - Jim Collins
President
User avatar
Posts: 11795
Joined: Sun Mar 10, 2002 1:18 am
Location: HI & SC
Real Name: John Derrick

Re: Table with fixed headers

Postby imnuts » Sat Feb 07, 2009 4:13 am

I'm not sure how exactly to do it code wise, but I know it is possible to do as we have that at work. I can't access it while I'm at home, but I could try and take a look at the code on the page to see how it's done sometime next week.
Image
PRO SUPREME
User avatar
Posts: 7457
Joined: Wed Mar 24, 2004 5:19 am
Location: Boothwyn, Pennsylvania
Real Name: Mark

Re: Table with fixed headers

Postby kanaloa » Sat Feb 07, 2009 4:35 am

These guys do it with javascript. If there's a non-js way to do this, I'd be curious to know about it myself.

http://www.activewidgets.com/javascript ... first.html
"Greatness is not a function of circumstance. Greatness, it turns out, is largely a matter of conscious choice, and discipline." - Jim Collins
President
User avatar
Posts: 11795
Joined: Sun Mar 10, 2002 1:18 am
Location: HI & SC
Real Name: John Derrick

Re: Table with fixed headers

Postby gries818 » Thu Apr 09, 2009 2:17 am

For something I see so often, I can't understand why there are nobody seems to be explain how to do it. I need it again, and I'm going to figure it out this time so I'll be sure to post it here when I do.
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Re: Table with fixed headers

Postby jbullard » Thu Apr 09, 2009 2:49 am

VP - Software
User avatar
Posts: 3653
Joined: Sun Jun 06, 2004 10:17 pm
Location: Utah
Real Name: Jason Bullard

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 6 guests

cron
cron