Re: [css3-tables] Allow freeze of table headings similar to Microsoft Excel

On Thu, Oct 14, 2010 at 2:03 PM, Belov, Charles <Charles.Belov@sfmta.com> wrote:
> I would like to see CSS implement table heading freezing, both
> horizontally and vertically, similar to Microsoft Excel.  Available
> JavaScript solutions commonly fail in one way or another and can have
> cross-browser issues.  A search of the www-style archive for table
> freeze brought up only one relevant post, from 2002:
>
> http://lists.w3.org/Archives/Public/www-style/2002May/0153.html
>
> Unfortunately, the CSS3 table spec does not appear to be available, and
> the note at http://www.w3.org/Style/CSS/current-work implies there are
> no changes planned beyond documentation.  I am having a hard time
> believing this issue has not come up more than a single post 8 years
> ago.  I do think a CSS solution would be much easier than a JavaScript
> one (not to mention saved bandwidth).

Indeed, a CSS solution should be much easier here.

I talked about this a few months ago in the context of a "sticky"
value for 'position', which would act similarly to relpos, but
automatically adjust the position to keep the element on screen as
long as its parent was on screen.  You could then use this for
<thead>, <tfoot>, and/or the first <th> in each <tr>.

~TJ

Received on Thursday, 14 October 2010 23:20:13 UTC