Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Freezing Table Header

Status
Not open for further replies.

kss444

Programmer
Sep 19, 2006
306
US
Hello all,
I have inhereted a web app that uses a web control that someone built it is kind of like a drop down but the result are actual in a table. And now I am wanting to maintain the header titles when the user scrolls down the fields.

I found the class the page is calling and it is:
table.dropDownSearch tr.Header
{
background-color: #BDB76B;

}
If is set position: fixed; in this class then the titles are fixed but it show up over the first record.

any help or suggestions would be great,
Thanks,

Ordinary Programmer
 
yeah, there are some "ok" solutions to this out there. They basically all are trying to do the same thing.

because there is no built in way to freeze the <TH></TH> row they are creating a table above the content table that has the same width columns and then scroll the content within the data table while the header table stays fixed.

The main issue, of course, is keeping the column width the same between the 2 tables.

Travis Hawkins
jobs.bestcodingpractices.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top