Align-items Solution
This lesson is a solution to the align-items vertical flex containers exercise in the previous lesson.
We'll cover the following
Exercise 2: align-items vertical flex containers
The following changes are needed for the solution:
- Change the width and the height of
flex-item
elements. Instead of a mandatory width, we will now have a mandatory height for each element. - Remove the
min-height
and themax-height
, and create the respectivemin-width
andmax-width
rules. Renaming the classes also makes. sense by replacing height with width everywhere - Optionally, change the inner text of each flex item.
- Change
flex-direction
tocolumn
for each Flex container.
The solution looks as follows:
Get hands-on with 1400+ tech skills courses.