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

Re: Column proposal in CSS-3 - Need for :column pse...

From: Sjoerd Visscher <sjoerd@heeten.nl>
Date: Sat, 16 Oct 1999 21:01:02 +0200
Message-ID: <001101bf1808$caf01580$1400000a@beneden>
To: "www-style" <www-style@w3.org>
> So with this:
>
>    P { display: columns; }
>    :column { width: 10%; } /* sets the 'default' column style */
>    :column(last) { width: 90%; background: url(end) bottom no-repeat; }
>
> First, 10 columns would initially fit, but once the :column(last)
> style is applied, it is found that the last column doesn't fit, and so
> is cut off.
>
> So now what? Is column 9 styled using :column(last), or do we stop
> here? If we stop here, the "end" image won't be displayed, probably
> counter to the author's intentions.
No, as I see it the algorithm should be:
1. try to fit as much columns as possible,
   without applying :column(last)
2. apply :column(last)
3. if the columns still fit we are ready
4. if the columns do not fit, decrease the number of columns with one and
goto step 2. again.

Sjoerd
Received on Saturday, 16 October 1999 15:04:20 GMT

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