0 *H 01 0 +0 *H $SContent-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit -Jon Levell wrote > Ben Meadowcroft wrote: > > > > This kind of presentational information would be best done > using CSS > > and its "graceful" degradation (theory and practice may clash). > > Browsers that understand the rules can apply them while those that > > don't > > I agree CSS is the best place for the presentational part of this > although it may be necessary to introduce new HTML to allow us to have > things to style. The actual CSS mechanism you gave as an example (with > columns in the head and body naturally the same width and the body > having and overflow set only works in very simple cases, if I > dynamically change the contents (and resize) a cell in the table body > then the columns will not line up with the head. I believe most browsers that support scrolling table bodies using CSS keep the header column widths in line with the width of the body columns (at least when the table body is only scrolling vertically). For example this simple test case (included at end of message) does this in firefox. The CSS rendering engine handles the dynamic resizing of columns. > And once you start trying to keep columns as well as rows fixed then a > complete rethink of the approach is needed as the "static" cells do > need to scroll - just in one direction. > > > CSS doesn't allow this level of control using column selectors > > unfortunately. See > > http://www.w3.org/TR/1998/REC-CSS2-19980512/tables.html#q4 for what > > you can do. > > I know that what I want to do is not currently possible in a simple > manner. I'm hoping that this new spec will change that situation, > either by extending thead/colgroup tags with new CSS or by introducing > new tags and classes or... I think that the best course for implementing this would be through CSS as what you are discussing is a presentation level feature. I think it would be best discussed in www-style@w3.org http://lists.w3.org/Archives/Public/www-style/ rather than in this forum. > I'm sorry - I'm a little bit confused by your email, you eloquently > show how to do it in very simple cases using existing HTML/CSS but you > say that what I'm trying to do can't currently easily be done, but I > know this as otherwise I wouldn't be posting asking for the new spec > to help. > > Sorry if I missed your point entirely! In retrospect I wasn't that clear was I! Basically I was making the point that the correct layer to do this kind of presentational effect is the presentation language (CSS). Therefore adding presentational mark-up to HTML within this spec to achieve the effects you want isn't the right route to take (in my opinion, maybe others disagree?). I think that Extending CSS to support this would be better (essentially introducing the concept of columns as first class citizens). I hope that made my point clearer. Ben ***Example*** Example of scrolling tbody with support for static header, footer and resizing columns. Click the button to resize the first column. Simple resizing table
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
Col 1Col 2Col 3Col 4
0U0l0  *H 0b1 0 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 050218213619Z 060218213619Z0H10UThawte Freemail Member1%0# *H  ben@benmeadowcroft.com00  *H 0ZB?bH(H.fAb)]^6*bg4ҞǸR [yd꩹-^3}@`{S,B!gݏ0-00  *H 01 0 UZA10U Western Cape10U Cape Town10U Thawte Consulting1(0&U Certification Services Division1$0"UThawte Personal Freemail CA1+0) *H  personal-freemail@thawte.com0 960101000000Z 201231235959Z01 0 UZA10U Western Cape10U Cape Town10U Thawte Consulting1(0&U Certification Services Division1$0"UThawte Personal Freemail CA1+0) *H  personal-freemail@thawte.com00  *H 0i԰d[qG Qr^}- {߅%u(t:B,c'{K~ݹΖdnD|Mq@8x^^v]nz| KU)&j8$jDZڣyZ00U00  *H ~Ngb*M`o`Xa&R5\0JbB#dG)ߝ^l`q\ynG (|_#& sC%/u Qkw0?0 0  *H 01 0 UZA10U Western Cape10U Cape Town10U Thawte Consulting1(0&U Certification Services Division1$0"UThawte Personal Freemail CA1+0) *H  personal-freemail@thawte.com0 030717000000Z 130716235959Z0b1 0 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00  *H 0Ħ@dקe*TH