Complete the code to center the content horizontally inside a flex container.
.container {
display: flex;
justify-content: [1];
}The justify-content: center; centers flex items horizontally inside the container.
Complete the code to align content to the end vertically inside a flex container.
.container {
display: flex;
flex-direction: column;
justify-content: [1];
}The justify-content: end; aligns the flex items to the end of the container vertically when flex-direction is column.
Fix the error in the code to properly align content to space between lines in a multi-line flex container.
.container {
display: flex;
flex-wrap: wrap;
align-content: [1];
}The correct value to distribute space evenly between flex lines is space-between.
Fill both blanks to create a flex container that wraps and aligns content stretched across the cross axis.
.container {
display: flex;
flex-wrap: [1];
align-content: [2];
}Using flex-wrap: wrap; allows items to wrap onto multiple lines, and align-content: stretch; stretches the lines to fill the container.
Fill all three blanks to create a flex container that wraps, aligns content to the start, and justifies content to the center.
.container {
display: flex;
flex-wrap: [1];
align-content: [2];
justify-content: [3];
}Setting flex-wrap: wrap; allows wrapping, align-content: start; aligns lines at the start of the cross axis, and justify-content: center; centers items horizontally.