W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [css] about vertical-align on display:block elements.

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 3 Feb 2014 09:28:39 -0800
Message-ID: <CAAWBYDA0kWbk6z=oYoUZvnZi5r0gjZ_qQ+_DdpAYOLqZ-4Rj9A@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, "www-style@w3.org" <www-style@w3.org>
On Sat, Feb 1, 2014 at 3:03 PM, Simon Sapin <simon.sapin@exyr.org> wrote:
> On 01/02/2014 21:46, Andrew Fedoniouk wrote:
>> For display:block elements,
>> what conceptually stops us from treating `vertical-align`
>> exactly in the same way as in display:table-cell ?
>
> Backward compatibility with existing content that may rely on vertical-align
> doing nothing in this case.
>
>> I believe this functionality is so basic and asked for
>> so frequently that we should do something about it.
>
> Use Flexbox.
>
> http://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/

Or, when it's implemented, use align-content:
<http://dev.w3.org/csswg/css-align/#content-distribution>

We're genericizing the Flexbox/Grid alignment properties to work on
all the block-level display types.

~TJ
Received on Monday, 3 February 2014 17:29:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:18 UTC