beyondMore pages

From “Learn Flexbox CSS in 8 minutes” by Slaying The Dragon

Learn Flexbox CSS: axes, alignment and item properties

Once the axes click, flexbox stops being a mystery.

Open the interactive page →Make a page from any YouTube video

Key points

Terms

What the preview shows along the way

Will it work in my browser?

Questions to check yourself

Which property aligns items on the main axis?

justify-content — justify-content aligns items along the main axis, while align-items works on the cross axis. 1:40

What does flex-wrap: wrap do?

Lets items flow onto new lines when space runs out — With wrap, items move to a new line instead of crushing into one line. 3:20

What does order: -1 do to an item?

Moves it to appear first — A negative order places the item before items with the default order of 0. 7:36

More pages like this

Lessons and exam prep →