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

Re: display property proposal: block-inline

From: Antoine Sanchez <ckkoshi@gmail.com>
Date: Wed, 08 Dec 2010 17:36:29 +0000
Message-ID: <AANLkTi=8nPtkCNRiRcUtWSA-Mws0WOb7EBJucY_RHkTV@mail.gmail.com>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: www-style@w3.org
Hello, thanks for the answer.

This is interesting, but not really easy to use.
If "white-space-collapsing: discard" is set, what happen to inline
element included?

Assuming i have:

<span style="white-space-collapsing: discard">

  <span style="inline-block;width:25%;">
    <a href="#">1</a>
    <a href="#">2</a>
  <span style="inline-block;width:75%;">
    <a href="#">1</a>


so the links in the first span will be attached?

On Fri, Nov 26, 2010 at 12:15 AM, Aryeh Gregor <Simetrical+w3c@gmail.com> wrote:
> 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, 9 December 2010 19:08:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:53 UTC