W3C home > Mailing lists > Public > www-style@w3.org > May 2002

Re: Vertical analogue to table-header-group

From: Daniel Brooks <db48x@yahoo.com>
Date: Sun, 05 May 2002 00:12:07 -0400
Message-Id: <5.1.0.14.0.20020505000334.023ea840@pop.mail.yahoo.com>
To: "Www-Style" <www-style@w3.org>
At 08:20 PM 5/4/02 -0700, Peter Sheerin wrote:
>I'd like a table to behave just as an Excell spreadsheet does when you 
>lock headers on the left and right, so that large tables can still be 
>understood.
>
>Look at 
>http://www.petesguide.com/WebStandards/tests/tables/HeadersFootersScrolling.html
>and you'll find a train schedule. I've been able to get a vertical 
>scrollbar to appear in NN6, so that all of the rows in the body of the 
>table can be scrolled up/down against the first several header rows, so 
>that the table fits on one screen, height-wise.
>
>How do I make the width of the table fit on one screen, and then scroll as 
>necessary?
>
> > Could you explain exactly, in detail, what effect you are looking for?

You probably cannot accomplish this with HTML unless you are willing to go 
to extremes. The problem is that html makes you format your table using 
cells inside of rows, rather than allowing you to put cells inside of 
columns. If you were allowed to do that the css would work exactly the same 
way, you could just put a column in thead and tfoot, and fix the width of 
the tbody. If you really want this effect however, you will probably have 
to split your table up into three seperate tables: two for the columns that 
won't scroll, and one in between these for the data in the table.

As an aside, Mozilla's XUL has a 'table' (called a grid) that can be 
defined by both rows as well as columns (even intermixing both forms in the 
same instance), though it doesn't have anything equivalent of thead and 
tfoot, so it doesn't have quite everything you would need.

db48x
Received on Sunday, 5 May 2002 00:16:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT