docs.rodeo

MDN Web Docs mirror

Alignment subject

{{GlossarySidebar}} 

In CSS box alignment the alignment subject is the thing (or things) being aligned within the {{glossary("alignment container")}}  by the property.

For {{cssxref("justify-self")}}  and {{cssxref("align-self")}} , the alignment subject is the margin box of the box the property is set on, using the writing mode of that box. For {{cssxref("justify-content")}}  and {{cssxref("align-content")}} , the writing mode of the box is also used.

The definition of the alignment subject depends on the layout mode being used.

See also

In this article

View on MDN