Results 1 to 6 of 6

Thread: HTML,JAVASCRIPT: aligning data in tables

  1. #1

    Thread Starter
    Lively Member muralidhary's Avatar
    Join Date
    Aug 2001
    Location
    Chennai
    Posts
    89

    HTML,JAVASCRIPT: aligning data in tables

    Hi all

    i am trying display data from database in my jsp page using html table tag.
    i have some 20 fields to display in each row. i do not want my table to expand to display all coloumns. i want its height and width to be fixed and i want to give scroll bars that allows user to see all the coloumns and all the rows. again when the user is scrolling down my header should stay unmoved only my data rows should move.

    fot this i kept my header in one table and my data in another table and used div tags and some vb script code that provides scroll bars. all this is fine but i was just unable to adjust the table data in sync with the header table.

    is there any another simple way to do this.

    can any one give me a suggestion and if not any links that will some good info.....

    thanks in advance
    ENJOY

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    There are <thead>,<tbody>,<tfoot> tags which do exactly what you want. But they are not supported by all browsers

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Just did some unsuccessful experiments with tbody and overflow: auto. Pity...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    I did it at home before where i have Moz and IE it worked in one but not the other. When I get home from work I'll try again and post something.

  5. #5
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Test Suite for UAAG

    The Above link has an example, it renders fine in Moz but not IE, so it is in essence useless

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Weird, that's nearly exactly what I did. Maybe it's the percentage heights in mine.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width