About

Flex layout boxes

Let's start with a very very simple example, solving an almost daily problem: perfect centering. It couldn't be any simpler if you use flexbox. This relies on the fact a margin set to `auto` in a flex container absorb extra space. So setting a vertical margin of auto will make the item perfectly centered in both axes.

Created: January 03 2020
Last Updated: January 03 2020

76
2
0
Tags: flex

Comments

Be the first to add a comment!
You must be logged in to make a comment.

Markdown!

You can write comments in Markdown! This makes it easy to write code or other goodies. Wikipedia has a good page to learn markdown.