1. flex-boxes | Deep dive into CSS Flex Boxes |
2. spacer | How to create seperator using Flex |
- Row, Column
- Row-Reverse and Column-Reverse
- Main axis and the Cross axis
- how RTL and LTR affect flex,
- Start and End instead of left and right
- Display:
flex
orinline-flex
- Children of flex containers become
flex-items
- Flex specific properties
- Container properties:
flex-direction
,flex-wrap
,justify-content
,align-items
- Child properties:
flex-grow
,flex-shrink
,align-self
,order
- Container properties:
- The
flex-direction
property defines the main and cross axes.
- Controlled by the
flex-wrap
property - Each "line" should be considered a flex container of its own
- The
flex-flow
group property - Wrapping in each direction
- The
wrap-reverse
value.- is
row-reverse wrap
the same asrow wrap-reverse
? - Why do we need both?
- is
- Properties
flex-grow
,flex-shrink
andflex-basis
are applied to flex items flex-grow
: How much of the positive free space this item getsflex-shrink
: How much of the negative free space can be removed from this itemflex-basis
: What is the size of the item befoe growing and shrinking happens- What is the difference between
flex-basis
andsize
- Understanding the
flex-basis
calculation before space distribution is done - Extra space distribution using
flex-grow
- Missing space distribution using
flex-shrink
- The
justify-content
property - The
align-items
property - The
align-self
property - The
align-content
property (for wrapping)
- The
order
property
- Perfect Centering
- using
justify-content
andalign-items
- using
margin: auto
- using