CSS Tutorial CSS Properties WEB Technology

CSS align-items Property

The align item property specifies the default alignment for the item inside the flexible container.

Tip: Use the align-self property of each item to override the align-item property.

Default value: stretch
Inherited: no
Animatable: no.
Version: CSS3
JavaScript syntax: object.style.alignItems=”center”

CSS Syntax

align-items: stretch|center|flex-start|flex-end|baseline|initial|inherit;

Property Values

Inherits this property from its parent element.

Value Description
stretch Default. Items are stretched to fit the container
center Items are positioned at the center of the container
flex-start Items are positioned at the beginning of the container
flex-end Items are positioned at the end of the container
baseline Items are positioned at the baseline of the container
initial Sets this property to its default value.
inherit Inherits this property from its parent element
Like/Subscribe us for latest updates or newsletter:

Leave a Reply

Your email address will not be published. Required fields are marked *