(tagged: public CSS web dev | personal ‣ ‣ ‣ ‣ )
<aside> 💡 practice with flexbox froggy!
</aside>
display: flex
property, and its children are flex itemsflex-direction
determines what the main axis of the flexbox is
flex-wrap
is nowrap
by default
wrap
to make items drop down to the next line when the container is too small to fit them side by side
nowrap
will supposedly “shrink your items if needed”
row
and nowrap
it DOES ignore the width rules and make some of the images narrower than the given width!nowrap
, then some of the content will just get cut off and be hiddenflex-flow
is a shorthand that takes flex-direction
then flex-wrap
in one linejustify-content
determines how the items inside a flex container are positioned along the main axis” —FCCalign-items
positions the flex content along the cross axis” —FCCalign-content
sets the spacing between different lines of content when you have wrappingalign-content
determines the spacing between lines, while align-items
determines how the items as a whole are aligned within the container. When there is only one line, align-content
has no effect.” —flexbox froggy — in other words, align-items
only handles the items as one big block, and doesn’t touch the spacing between lines.row-reverse
and column-reverse
vs wrap-reverse
:gap
applies to the container element and sets the space between rows and columns