The align-self property specifies the block alignment for the selected element within a flexbox or grid container. If you want to align a grid element in the inline direction instead of the block direction, use the justify-self or justify-items property. The align-self property overrides the align-items property.
| auto | The element inherits the align‑items property of its parent container. | View example |
|---|---|---|
| baseline | The element is positioned on the baseline of the container. | View example |
| center | The element is placed in the center of the container. | View example |
| flex-end | The element is placed at the end of the container. | View example |
| flex-start | The element is placed at the start of the container. | View example |
| inherit | The element inherits the property from its parent element. | View example |
| initial | Sets the property to its default value. | View example |
| stretch | The element is sized so that it stretches to fill the container. | View example |
The align-self property specifies the block alignment for the selected element within a flexbox or grid container.
Thank you for visiting! Adding privacy policy.
© 2024 All rights reserved.
Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.