scrollable table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soeter04
    New Member
    • Nov 2006
    • 12

    scrollable table

    Hey guys,

    I'm trying to make a scrollable table as follows:
    table is inside a div that is scrollable, both horiz and vert
    above that div is another div, containing the table headers.
    As the user scrolls the main div horizontally, the headers should move accordingly.

    http://www.ruimtemaker .nl/test/index.html

    It does work as i wanted now, only thing is the alignment of the two table columns. The more columns, the more it's off...

    Does anyone have any tips on how to get the two tables aligned in a better way?

    Thanks,
  • junal
    New Member
    • Jan 2007
    • 22

    #2
    well i guess you can use CSS to keep alignment of your tables same. define a class for a table and call the same class in both tables. so you can call your class in the DIV, something like this

    <DIV class="your class name">
    <table>
    <tbody>
    </tbody>
    </table>
    </DIV>

    Comment

    • abctech
      New Member
      • Dec 2006
      • 157

      #3
      Originally posted by soeter04
      Hey guys,

      I'm trying to make a scrollable table as follows:
      table is inside a div that is scrollable, both horiz and vert
      above that div is another div, containing the table headers.
      As the user scrolls the main div horizontally, the headers should move accordingly.

      http://www.ruimtemaker .nl/test/index.html

      It does work as i wanted now, only thing is the alignment of the two table columns. The more columns, the more it's off...

      Does anyone have any tips on how to get the two tables aligned in a better way?

      Thanks,
      I had a similar query just a few days back and here is the response I got from this forum! It might be of some help to you!

      Comment

      Working...