Scrollable table widget with fixed header

Discussion in 'Javascript' started by Mel, Jul 5, 2004.

  1. Mel

    Mel Guest

    Scrollable table widget with fixed header

    is there such thing ?

    thanks,
    Mel
    Mel, Jul 5, 2004
    #1
    1. Advertising

  2. Mel wrote:

    > Scrollable table widget with fixed header
    >
    > is there such thing ?
    >
    > thanks,
    > Mel
    >
    >

    no, but you can 'build' such widgets just by using <div> elements as
    containers for tables and using CSS. No J(ava)Script required.

    cu, Michael
    Michael Schmitt, Jul 6, 2004
    #2
    1. Advertising

  3. Michael Schmitt wrote:
    > Mel wrote:
    >> Scrollable table widget with fixed header
    >>
    >> is there such thing ?
    >> [...]


    <http://learn.to/quote>

    > no, but you can 'build' such widgets just by using <div> elements as
    > containers for tables


    No. The goal was a *fixed header*. To achieve that with `div' elements
    you would need to have the `div' element as a direct descendant of the
    `table' element which creates invalid HTML as `div' is not part of
    `table''s content model.

    > and using CSS. No J(ava)Script required.


    Correct:

    <table>
    <thead>
    ...
    </thead>

    <tfoot>
    ...
    </tfoot>

    <tbody style="height:50%; overflow:scroll">
    ...
    </tbody>
    </table>

    Alas, this still waits for implementation in some widely used browsers.


    PointedEars
    Thomas 'PointedEars' Lahn, Jul 10, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sonali
    Replies:
    1
    Views:
    3,462
    eliza81
    Mar 8, 2010
  2. Marcus
    Replies:
    0
    Views:
    479
    Marcus
    Oct 6, 2008
  3. Mel Smith
    Replies:
    27
    Views:
    3,971
    dorayme
    Jun 9, 2010
  4. Matt Kruse
    Replies:
    17
    Views:
    234
    Mick White
    Sep 3, 2004
  5. JJ
    Replies:
    8
    Views:
    259
    Ben C
    Nov 5, 2013
Loading...

Share This Page