I’m working on a large project that displays a huge amount of data in one large table with a one line, 3 part, page header above it.
Here is an example of a smaller page, less than 100 lines, http://www.papageek.com/funds/web/index.html . I want the page header, table header, and the first 3 table rows, tan background, to be fixed. The normal page scroll bar to the right should only scroll the remaining table lines.
I’ve found a few examples that use DIV commands to define the locked portion of the page, but it is not proper HTML syntax to start a DIV outside a TABLE definition and end it inside the table. Breaking the example into two tables kills the body column alignment with the header.
Is there a CSS or JavaScript method for doing this?
Here is an example of a smaller page, less than 100 lines, http://www.papageek.com/funds/web/index.html . I want the page header, table header, and the first 3 table rows, tan background, to be fixed. The normal page scroll bar to the right should only scroll the remaining table lines.
I’ve found a few examples that use DIV commands to define the locked portion of the page, but it is not proper HTML syntax to start a DIV outside a TABLE definition and end it inside the table. Breaking the example into two tables kills the body column alignment with the header.
Is there a CSS or JavaScript method for doing this?
Last edited: