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.

/* 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;
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC