views:

181

answers:

2

I have an HTML page that contains a table. The table headers get eventually scrolled off the top of the screen, but I would like the headers to stay visible at the top.

I want to use a method like alaskaair.com's "Fares Selected" widget. Their little Fares widget stays visible as you scroll the page: Screenshot of alaskaair.com widget.

Note that in my case it would look more like this: Simple Mockup

+2  A: 

I use xTableHeaderFixed to freeze my headers:

http://cross-browser.com/x/lib/view.php?s=xTableHeaderFixed

mga911
This is exactly what I need! I also found this: http://www.jtricks.com/javascript/navigation/fixed_menu.htmlBut you link is better!
LCDcrack
+1  A: 

I was in a similar situation recently (creating an inbox-style display for notifications), and after some googling, I came across these:

  1. http://www.imaputz.com/cssStuff/bigFourVersion.html
  2. http://www.imaputz.com/cssStuff/bulletVersion.html

I'm presently using (1) and I haven't encountered any issues with it so far. You can follow the discussion of the solution here.

EDIT
I just re-read your question, and I guess this isn't exactly what you were looking for. Still, maybe it'll be useful to someone else.

elo80ka
You're right not quite what I need.
LCDcrack
Exactly what I needed, thanks. :)
Helgi Hrafn Gunnarsson