justify-self
Allows a single item inside a grid or flex container to override the default alignment set by its parent.
It is documented as part of the CSS Box Alignment specification.
Syntax
/* Usage Example */
.special-item {
/* Pushes this specific item to the right edge of its cell */
justify-self: end;
}
/* Syntax */
justify-self: auto;
justify-self: normal;
justify-self: stretch;
justify-self: left;
justify-self: right;
justify-self: anchor-center;
/* Global values */
justify-self: inherit;
justify-self: initial;
justify-self: revert;
justify-self: revert-layer;
justify-self: unset;
justify-self Browser support
Widely available
Since
2017 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
57+
45+
10.1+
16+