/

HTML / CSS / JavaScript Tutorial

CSS Property: align-content

[this page | pdf | back links]

The CSS (CSS3) align-content property modifies the behaviour of the flex-wrap property, aligning flex lines. N.B. If you want to align items on the main x-axis then use the justify-content property.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

center

Lines packed towards centre of flex container

flex-end

Lines packed towards end of flex container

flex-start

Lines packed towards start of flex container

space-between

Lines distributed evenly in flex container

space-around

Lines distributed evenly in flex container but with half-size spaces at either end

stretch

(default value). Lines stretch to take up remaining space

 

Default Value:

stretch

JavaScript syntax:

e.g. object.style.alignContent = "center";

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile