CSS alignself Property (original) (raw)

CSS align-self Property

Last Updated : 23 Aug, 2024

The **align-self property in CSS is used to align the selected items in the flexible container in many different manners such as flex-end, center, flex-start, etc.

**Syntax:

align-self: auto|normal|self-start|self-end|stretch|center
|baseline, first baseline, last baseline|flex-start
|flex-end|baseline|safe|unsafe;

**Property values: **auto: This property is used to inherit its parent container align-items property or stretched if it has no parent container. It is a default value.

**Syntax:

align-self: auto;

**Example:

html `

CSS | align-self Property