justify-self
Widely availableSince 201797% of users
Allows a single item inside a grid or flex container to override the default alignment set by its parent.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since October 2017, and it keeps getting newer values.
Newer parts of justify-self
anchor-centerBaseline Jan 2026Supported for absolutely-positioned boxesBaseline Sept 2025autoBaseline Jan 2020, Widely Jul 2022endBaseline Jan 2020, Widely Jul 2022leftBaseline Jan 2020, Widely Jul 2022normalBaseline Jan 2020, Widely Jul 2022rightBaseline Jan 2020, Widely Jul 2022startBaseline Jan 2020, Widely Jul 2022
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- block-level boxes, absolutely positioned boxes, and grid items
- Animation type
- discrete
Quick example
.special-item {
/* Pushes this specific item to the right edge of its cell */
justify-self: end;
}Values
autonormalstretchleftrightanchor-centerjustify-self browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
57+
45+
10.1+
16+Mobile
57+Android
45+Android
10.3+iOS