Complete the code to align items vertically in the center inside a flex container.
.container {
display: flex;
align-items: [1];
}Using align-items: center; centers the items vertically inside the flex container.
Complete the code to align items at the bottom inside a flex container.
.box {
display: flex;
align-items: [1];
}align-items: flex-end; moves items to the bottom of the flex container vertically.
Fix the error in the code to properly align items at the top inside a flex container.
.container {
display: flex;
align-items: [1];
}The correct value to align items at the top is flex-start. Values like 'bottom' or 'middle' are invalid for align-items.
Fill both blanks to create a flex container that aligns items at the baseline.
.flex-container {
display: [1];
align-items: [2];
}Setting display: flex; creates a flex container. align-items: baseline; aligns items along their text baseline.
Fill all three blanks to create a flex container that justifies content to space between, and sets the flex direction to row.
.container {
display: [1];
justify-content: [2];
flex-direction: [3];
}display: flex; creates a flex container. justify-content: space-between; spaces items evenly horizontally. flex-direction: row; arranges items in a row.