W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: [css-flexbox] justify-self

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 8 Apr 2015 13:49:48 -0700
Message-ID: <CAAWBYDBTahszTyvBZzuM589LvxOyDyPYavfhoMNyUYTy1iLBpQ@mail.gmail.com>
To: Matt Hughes <hughes.matt@gmail.com>
Cc: www-style list <www-style@w3.org>
On Fri, Apr 3, 2015 at 3:00 PM, Matt Hughes <hughes.matt@gmail.com> wrote:
> Flexbox defines the following properties:
>
> justify-content -  main-axis parent
> align-items     - cross-axis parent
> align-self      - cross-axis self
>
> Why is there no justify-self for aligning a single flexbox child along the
> main-axis?

Because there can be multiple children in that axis.  The *-self
properties only work if the child is all alone in that axis.  When
there are multiple boxes to be aligned, they can only be aligned en
masse, with the *-content properties.

~TJ
Received on Wednesday, 8 April 2015 20:50:36 UTC

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