FlexBox recap
Following along egghead.io flexbox tutorials
Bootstrap framework v4 using Flexbox for grid layout
Flexbox
make container display: flex
can set children row or column
column: flows top to bottom
order: can set order in which children are displayed
all children have 0 for order by default and are laid out as in the dom
changing order high moves it after lower orders in flow
can also set to negative number to move higher
justify-content: affets way children are aligned along the way the content is flowing
defaults to flex-start which means they bunch near start
center: can center vertically
flex-end
space-between
align-items: affects space perpindicular to the flex direction
defaults to stretch
align-self: sam as align-items but only applied to specific individual children
Bootstrap framework v4 using Flexbox for grid layout
Flexbox
make container display: flex
can set children row or column
column: flows top to bottom
order: can set order in which children are displayed
all children have 0 for order by default and are laid out as in the dom
changing order high moves it after lower orders in flow
can also set to negative number to move higher
justify-content: affets way children are aligned along the way the content is flowing
defaults to flex-start which means they bunch near start
center: can center vertically
flex-end
space-between
align-items: affects space perpindicular to the flex direction
defaults to stretch
align-self: sam as align-items but only applied to specific individual children
Comments
Post a Comment