Skip to content

Place Content

• 1 min

Simplify flexbox positioning with using one property instead of two.

.item {
display: flex;
place-content: center;
}

It's also works with grid.

.item {
display: grid;
place-content: center;
}

Support

Not IE