W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: display property proposal: block-inline

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Thu, 25 Nov 2010 18:15:17 -0500
Message-ID: <AANLkTi=C_ESG80KrT1uMFe6QqFq+J0DVFYbgwJ_MU-nO@mail.gmail.com>
To: Antoine Sanchez <ckkoshi@gmail.com>
Cc: www-style@w3.org
On Wed, Nov 3, 2010 at 6:35 AM, Antoine Sanchez <ckkoshi@gmail.com> wrote:
> Hello world, first time for me here.
>
> I often use inline-block, a useful property, but to align block
> without floating elements, inline-block is not a good way, the
> white-space between 2 tags will make the size wrong (imagine 2 blocks
> with a 50% width + the space, it booms).
>
> So a property like display:block-inline; will have the same effect
> like inline-block but without the white-space.

I think the proposed "white-space-collapsing: discard" on the parent
element would do what you want here:

http://dev.w3.org/csswg/css3-text/#white-space-collapsing
Received on Thursday, 25 November 2010 23:16:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT