/    Sign up×
Community /Pin to ProfileBookmark

Floating Header Row – without defining table height

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.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@slaughtersNov 26.2008 — 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"

[I]"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."[/I]

http://stansight.com/WordPress/2008/07/29/floating-table-titles/

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

Success!

Help @gift2women spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...