W3C home > Mailing lists > Public > www-style@w3.org > October 1999

Re: Column proposal in CSS-3 - Need for :column pseudo-class, etc.

From: Sjoerd Visscher <sjoerd@heeten.nl>
Date: Sat, 16 Oct 1999 00:21:15 +0200
Message-ID: <008d01bf175b$9b0322c0$1400000a@beneden>
To: "www-style" <www-style@w3.org>
> That would be good, but no rule that could change the size of the
> column could be used, for example: border-* margin-* padding-* height,
> width, font-size (because lengths can be dependent on em), etc....
>
> The reason for this is obvious if you try to imagine the result of:
>
>    P { display: columns; }
>    P:column(1) { width: 50%; }
>    P:column(2) { width: 40%; }
>    P:column(3) { width: 20%; }
>    P:column(last) { width: 60%; }
>
> The first column would be 50% wide, the second 40%, and the third
> would not fit. So it would try to have two columns. That means that
> the last column would be column 2, which would thus be made 60% wide.
> But of course that would mean it could not fit. So the last column
> would be column 1, which would be made 60% wide, but then column 2
> would fit, so it would be the last column. So it would be made 60%
> wide, and.... ARG!
>
> So the :column(last) pseudo-element would be limited to colour and
> background type stuff. Is it worse it?

If 2 columns, after applying the :column(last) style, do not fit, then only
1 column should be used. There's no reason to try 2 columns again.

Sjoerd Visscher
Received on Friday, 15 October 1999 18:24:24 GMT

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