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

RE: float:center

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Sat, 5 Jan 2008 11:59:15 -0800
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F012126B36799@DF-GRTDANE-MSG.exchange.corp.microsoft.com>

With current definition of page floats,

    "float:top left column; float-offset:0.5gr 0.5gr"

Will center the float in the current column (or current block if it only has one column).

There is a couple of issues with the above example:

* float-offset includes a special behavior that makes this work:

        "If the 'gr' unit or percentage unit is used, it means that
        the middle of the float should be aligned with the specified
        grid line (or portion thereof)."

I don't particularly like that float-offset combines positioning and definition of anchor point. I love the concept but I would rather see separate simpler properties (perhaps "anchor-point"?).

* It isn't well defined how text floats around all possible page floats. I agree that it rarely makes sense to wrap text on both sides of a float. I don't want to say however that it never makes sense.

It is a design decision and should be made by the author, not restricted by technology. BTW, when you combine page floats with tight wrap, wrapping on both sides of a float will suddenly make sense much more often...

Floats should have their own control to say on which side(s) text is allowed to flow. Just like "clear" but applied to float.

[1] GCPM 'float-offset': http://www.w3.org/TR/css3-gcpm/#the-lsquo5

-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net]
Sent: Friday, January 04, 2008 9:04 PM

Alex Mogilevsky wrote:

> I will agree that it is hard to define and hard to implement but it is already
> being done



I think it's more reasonable to define behavior so that the text in a single column
either flows on one side, or on the other side. If the float is positioned to span
columns, then it makes sense for text to wrap around both sides.
Received on Saturday, 5 January 2008 19:59:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:32 UTC