Floats were never intended for layout, however clever developers found ways in which to use them to create their layouts. Having worked with floats you may have noticed some limitations and bugs (clearfix anyone? vertical centering?).
justify-content
and align-items
.justify-content
and align items
?Flexbox is a new layout mode in CSS3 initially developed by Mozilla to make layouts. There were 3 different iterations of the flex property, the final 2012 spec — display: flex
has excellent browser support. The current Flexbox spec is fully supported in all modern browsers, including mobile, IE11 and Edge.
Go through the FlexBox series of interactive tutorials at scrimba.com
Watch Wes Bos’ tutorial What the Flexbox?!. This course consists of 20 videos covering Flexbox: watch on Youtube.
Once you have completed the course you can read through CSS-Tricks Complete Guide to Flexbox should you want more in depth information.
Read through Interneting is hard’s tutorial to see how to use Flexbox to help create flexible layouts.
RECORDINGS
Try the interactive Flexbox froggy game.
This MDN Flex article, which shows examples of what you can achieve with Flexbox.
Dive Into Flexbox is an in depth article with examples.