PDA

View Full Version : Keep header of a table on top..


Coral_Lover
09-25-2002, 04:58 AM
Hi everyone, may i know how do i keep a header of a table always on whereby it's in a scroll panel, using <DIV STYLE = "overflow:scroll">. I've tried to separate the content and the header into 2 different tables, but the alignment of these 2 tables will be so different. Hence, right now the coding that i've is that the content and the header are in the same table. But the header will not be on top of the table when i scroll further down. :mad:

I've attached the codes of the table.

Roy Sinclair
09-25-2002, 03:28 PM
Here's (http://www.daveclarkconsulting.com/research/dynamic_table.html) on way of doing it (and a lot of other frequently requested things for tables.).

Coral_Lover
09-27-2002, 03:06 AM
Hi Roy, i've download that example provided. But the alignment of the header and the content is not properly aligned... In addition, those javascript functions looks rather profound to me. Does anyone know how to solve my problem??? (To align the header and the content properly if they are separated into 2 tables) Please help me, please please... Thank U!!

Roy Sinclair
09-27-2002, 05:00 PM
The short answer would be to specify exact sizes in pixels for both the header and the data but you've got to watch out for data columns that are oversized as they'll often cause the table to override your settings.