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

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