Re: display property proposal: block-inline

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 UTC