|
-
Nov 25th, 2003, 03:23 AM
#1
Thread Starter
Lively Member
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
-
Nov 25th, 2003, 03:49 AM
#2
There are <thead>,<tbody>,<tfoot> tags which do exactly what you want. But they are not supported by all browsers
-
Nov 25th, 2003, 06:23 AM
#3
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.
-
Nov 25th, 2003, 08:47 AM
#4
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.
-
Nov 25th, 2003, 03:19 PM
#5
Test Suite for UAAG
The Above link has an example, it renders fine in Moz but not IE, so it is in essence useless
-
Nov 26th, 2003, 04:21 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|