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: <>
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 
>Look at 
>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 
> > 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.

Received on Sunday, 5 May 2002 00:16:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC