flex
on the Parent
The
flex
class must be applied to the
direct parent
of the items you want to align.
flex
on parent
Items stack vertically by default (as block elements).
flex
on parent
Items align horizontally when parent has
flex
.
Always ensure the container that directly holds the items you want to arrange in a row has the
flex
class.