Web Hosting Forum | Lunarpages

Author Topic: Making fixed header in table  (Read 8797 times)

Offline tbirdman

  • Newbie
  • *
  • Posts: 2
Making fixed header in table
« on: November 15, 2012, 12:23:48 AM »
I have a very large table, that I'd like to make the top row fixed and the left two columns fixed. Idea is for these ares to remain fixed while the veiw scrolls the table. Can't figure out how to do his.Using DreamweaverMX 2004.
Kenneth X Krolikoski

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6210
Re: Making fixed header in table
« Reply #1 on: November 15, 2012, 06:16:14 AM »
So the table looks something like a spreadsheet, where the top row (column labels) scrolls left and right only, and the left column (row labels) scrolls up and down only, both coordinated with the general scrolling of the remaining block of columns and rows? It can be done with divs and Javascript code, but I doubt an old version of DW can do it for you. It might be possible to do this with frames, too, although I don't think you can coordinate scrolling among the three sections (i.e., they would scroll (or not) independently of each other). Is there an existing site that does this that you could point to, to see how they do it?
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline nancy29

  • Pong! (the videogame) Master
  • *****
  • Posts: 24
Re: Making fixed header in table
« Reply #2 on: January 17, 2013, 03:28:09 AM »
you should apply this code to the divs you want to make fixed they will stop moving along with the scroll

strip{ position: fixed;
z-index:1;
width:100%;
}

 

Share |