flex quick reference
Flex
container/parent
display: flexmake this a flex styles
flex-directionrow(default)columnrow-reversecolumn-reverse
flex-wrapwrapnowrap(default)wrap-reverse
flex-flow- shorthand for ‘flex-wrap’ & ‘flex-direction’flex-flow: <flex-direction> || <flex-wrap>- default:
flex-flow: row nowrap
justify-content- defines the alignment along the main axis.flex-start(default)flex-endcenterspace-betweenspace-around
-
align-items- defines the layout along the minor axis (like justify-content but for the minor axis)flex-startflex-endcenterbaselinestretch(default)
-
align-content- defines the alignment along the minor axis when extra space exists. (no effect if only one line)flex-startflex-endcenterspace-betweenspace-aroundstretch(default)
child/items
order- integer order to override default of source order.- default 0
flex-grow- unitless value that serves as a proportion for the size (major axis) of the child- default 0
flex-shrink- unitless value defines ability to shrink if necessary (to fit on major axis)- default 1
flex-basis- This defines the default size of an element before the remaining space is distributed.- length in %, px, rem…
auto(default) - look at my width or height propertycontent- based on content
flex- shorthand for flex-grow, flex-shrink and flex-basis.flex <flex-grow> <flex-shrink> <flex-basis>- default:
flex 0 1 auto
align-self- allows the default alignment (or the one specified by align-items) to be overridden for individual flex items.flex-startflex-endcenterbaselinestretch
