W3C home > Mailing lists > Public > www-style@w3.org > January 2008

RE: float:center

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Fri, 4 Jan 2008 20:00:01 -0800
To: John Oyler <johnoyler.css@gmail.com>, "www-style@w3.org" <www-style@w3.org>
CC: Anne van Kesteren <annevk@opera.com>
Message-ID: <04F36FB4ED0F85459AA447F72711526F012126B36762@DF-GRTDANE-MSG.exchange.corp.microsoft.com>

The "float:center" discussion here appears to have a general sentiment that "float:center" sounds useful but  it is very hard to define and implement, therefore we shouldn't go there.

I will agree that it is hard to define and hard to implement but it is already being done so it would be a very good investment of our collective brainpower to define precise behavior, so that implementations have a goal to work towards.

Note that page floats [1] being currently defined in CSS3 GCPM spec, in combination with another cool property 'float-offset' [2] and even a grid [3] will be able to land pretty much anywhere, including the center of a page or a block. Text may have to flow on both sides; collisions of multiple floats will be possible and have to be resolved.

So I think definition of "float:center" is really is worth serious consideration...

[1] GCPM Page Floats:    http://www.w3.org/TR/css3-gcpm/#page-floats
[2] GCPM 'float-offset': http://www.w3.org/TR/css3-gcpm/#the-lsquo5
[3] Grid positionin:     http://dev.w3.org/csswg/css3-grid/

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of John Oyler
Sent: Thursday, December 27, 2007 8:00 AM

...
What would happen if you float two elements, when floating both left,
they just stack up against the side, but obviously two elements can't
be in the center simultaneously. Would you center them at their common
center then,  or does the second float: center'ed element wrap down
below it?

How many uses of this would there realistically be? Are there any
examples of such in typography at all?
...
Received on Saturday, 5 January 2008 04:00:14 GMT

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