When you set the display
property of an element to
flex
, that element
becomes a flex container
and
all its immediate child elements
become flex items.
Here is an example:
Try removing the display
property on .container
and
you'll see that the child
elements follow the normal
flow of the page.