You are on page 1of 36

FlexBox CSS

What is Flexbox?

● Flexbox is a CSS3 layout mode that ● No Floats


provides an easy and clean way to
arrange items within a container=> ● responsive and mobile friendly.
it comes to creating complex
● direction-agnostic
structured small scale layouts in
HTML.
● flex container’s margin do not
● ability to use any HTML element to collapse with the margin of it’s
define its containers and elements. contents.
You can use div, nav, article. ● order of elements can easily be
● can be considered a much more changed without editing the
capable successor to HTML tables. source.
Properties for the Parent
(flex container)
Properties for the children
(flex items)
CSS Naming
Convention BEM
Should i create a Block
or an Element?
Types of Modifier

You might also like