W3C home > Mailing lists > Public > www-style@w3.org > June 2001

Re: colgroups

From: Tim Bagot <tsb-w3-style-0003@earth.li>
Date: Fri, 1 Jun 2001 10:01:53 +0000 (UTC)
To: <www-style@w3.org>
Message-ID: <Pine.LNX.4.33.0106010939110.13905-100000@windle.hack>
At 2001-06-01T12:10+0300, Manos Batsis wrote:-

> Can the colgroup element be styled as "display:block;"
> Doesn't seem to work for me...

It certainly can, but whether it will do what you want is another matter.
HTML UAs are allowed to ignore the display property[1], and are not
required to apply the full CSS table model[2]; but assuming you don't
change the value of the display property on any other HTML table elements,
what I _think_ will happen in a UA that chooses to apply the CSS rules is

1. The colgroup elements will generate anonymous table cell elements
around themselves.

2. These will in turn generate a single anonymous table row.

That is, you end up with an extra table row, which probably won't be
enormously interesting, since colgroup can contain only col, which is

Tim Bagot

[1] http://www.w3.org/TR/REC-CSS2/tables.html#anonymous-boxes
[2] http://www.w3.org/TR/REC-CSS2/visuren.html#display-prop
Received on Friday, 1 June 2001 06:02:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC