Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
September 23, 2014, 12:25:41 AM

Pages: [1]   Go Down
  Print  
Author Topic: Making fixed header in table  (Read 6753 times)
tbirdman
Newbie
*
Offline Offline

Posts: 2


« 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.
Logged

Kenneth X Krolikoski
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5884



« 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?
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
nancy29
Pong! (the videogame) Master
*****
Offline Offline

Posts: 24


« 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%;
}
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: