Frozen table header inside scrollable div
Posted
by rafek
on Stack Overflow
See other posts from Stack Overflow
or by rafek
Published on 2009-01-28T05:37:01Z
Indexed on
2010/03/17
17:51 UTC
Read the original article
Hit count: 435
I've three divs. Header, central and footer. There is a table in central div (gridview) which is almost always longer than outer div. So I've made this div scrollable vertically. The question is: how can I make table header that it would be visible after div is scrolled down? I could have done this header with separate div or table and make it fixed but widths of columns in the table are not always the same - so I don't know how to maintain widths of columns in header then. Any clue?
© Stack Overflow or respective owner