Skip to content

CSS justify-items and justify-self without flexbox or grid #1037

@o-t-w

Description

@o-t-w

Description

justify-self should work for block-level boxes and justify-items should work for block containers.

This is implemented in Chromium-based browsers since version 130 (it was not mentioned in any release notes but is mentioned here). In Firefox and Safari, justify-items can only be used in conjunction with display: grid and justify-self can only be used for absolutely positioned boxes or grid items.

Several updates to alignment have been implemented across all browsers over the last few years:

  • The self-alignment properties align-self and justify-self work for absolutely positioned elements.
  • align-content works without the need for flexbox or grid.

This finishes the work of updating CSS alignment.

Specification

https://www.w3.org/TR/css-align-3

web-feature

No response

Test Links

No response

Additional Signals

Mozilla standards position

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions