W3C home > Mailing lists > Public > www-style@w3.org > December 2007

Re: float:center (was: Re: Alignment property proposal)

From: Patrick Garies <pgaries@fastmail.us>
Date: Thu, 27 Dec 2007 11:31:20 -0600
Message-ID: <4773E168.3030304@fastmail.us>
To: Alan Gresley <alan1@azzurum.com>, www-style@w3.org

Alan Gresley wrote:
> Yeah, float center does sound bazaar :p. In your example, the floated text would simply float to the center of its' containing block.
> The inline boxes simply flow around both sides of the float. If two or more center floated boxes can fit side by side, then the first box in the source begins on the left of a row of floats for ltr direction or on the right for a row of floats for rtl direction. Clearing of floats would be archived with: left, right, both (both directions); and the additional values: center, left center, right center, left right.

This effect is probably where use cases are needed: where text flows 
around the center‐floated element. Personally, I can’t think of any.

> Another test case using negative margins on a container to achieved some balance at various intervals when resizing the width of the viewpoint. This is how would believe center floated boxes would behave.
> http://css-class.com/test/demos/thumbgallery2.htm

Can’t this effect already be achieved with display: inline-table or 
display: inline-block combined with text-align: center?
Received on Thursday, 27 December 2007 17:31:40 UTC

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