Jump to content

[SOLVED] Freezing A Tables Heading Row.. Possible?


hotwire

Recommended Posts

Hi, Is there a way to lock or freeze a table's Top Row Heading so when you scroll the topic heading row will stay in place?

 

The closest I have come to doing this is to actually use a 2 cell table, placing the table's heading in the top cell and the sql database table's data in the bottom cell so when i scroll the bottom data the top field heading is not affected.  This causes an issue of the top row heading not always aligning with the data in the bottom table cell.

 

So it's neccessary that I try to find a better way to keep a table's top row heading in place using another method.

 

Any help or info on this is appreciated  ..Thanks.

Link to comment
Share on other sites

  • 3 weeks later...

Hi fenway,

 

The only way I was able to do this was to actually have to use a floating script which indeed involved javascript.  Therefore, having to actually use the echo to carry out the table's heading to be static.  This way when you scroll the web page, viewers can still see the Heading for each column because the heading is constantly being called through the javascript to keep an absolute position on the screen.

 

Anyhow thanks for reading and attempting to help.  I appreciate it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.