Re: [css-flexbox] justify-self

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