Click to See Complete Forum and Search --> : Floating Header Row - without defining table height


gift2women
11-26-2008, 12:04 PM
I have a table that I do NOT want to define the size of, but would like to have the table header row frozen (similar to Excel's freeze pane; it shouldn't only apply to certain 'heighted' tables/divs. Is there a way to freeze the table header without defining the height of the div/table?

I have found multiple solutions involving defining the div height and then this works ... but this solution is not suitable to my needs.

slaughters
11-26-2008, 01:23 PM
If you do not specify a height - then how/when would you freeze the title ? With no height specified there will be no table scroll bar.

If you want the title to stay in view when the "page" scrolls up and the title is about to go off the screen, then you may be able to use something I wrote a few months ago that I call "Floating Table Titles"

"Invisibly in the background this script will take your tables exsting titles and “fix” them so as you scroll down the page they will always remain in view."
http://stansight.com/WordPress/2008/07/29/floating-table-titles/

Tested to work in Firefox 3, IE 7, Chrome, and Safari 3.1.2