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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Constant Table Header

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Guys,

I have searched through this forum trying to find an answer to my question but I don't really know what to search for.

I am just coding a page on our intranet where an assembler will be entering several lines of test data. New lines are dynamically added to the table as required - I have the advantage of only having to code for IE. However, because there can be over 200 lines of data in this table, I was wondering if there is any way of stopping the table header from scrolling off the page. You know the way in excel that you can set a row as a header row - can you do something silimar using CSS or DHTML??

Any help/advice would be greatly appreciated. Mighty :)
 
Hi,

Put the top row(s) in one table then put the data rows in another table which is nested in a DIV. Then put scrollbars on the div.

Sorta like::

<--main table width=&quot;400&quot;-->

<div style=&quot;overflow:auto;width:410px;&quot;>
<--data table width=&quot;400&quot;-->
</div>




::
 
Or simply use a seaprate frame. Altho I like the answer above beter :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top