Flexbox (Flexible Box) is a layout model in CSS that makes it easier to design flexible and responsive layouts. It allows elements within a container to align and distribute space dynamically. The Flexbox model includes properties for both the container (the parent) and the items (the children) within it.
Below is an example of a flex container with multiple flex items. The flex container has space-between distribution and aligns items in the center.
The items in the flex container will be spaced evenly. Modify the code to experiment with different flexbox properties!
1. What does the display: flex;
property do?
2. Which of the following values can be used with the justify-content
property?
3. How do you align flex items vertically?