Complete the code to center the items horizontally using flexbox.
.container {
display: flex;
justify-content: [1];
}The justify-content property with value center centers flex items horizontally inside the container.
Complete the code to space items evenly with equal space around them.
.container {
display: flex;
justify-content: [1];
}space-between which does not add space at the edges.stretch which is not a valid justify-content value.The value space-around adds equal space around each item, including the edges.
Fix the error in the code to align items to the end horizontally.
.container {
display: flex;
justify-content: [1];
}The correct value to align flex items to the end is flex-end. Values like right or end are invalid here.
Fill both blanks to create a flex container that spaces items evenly and wraps them.
.container {
display: [1];
justify-content: [2];
flex-wrap: wrap;
}block instead of flex for display.space-between which does not add equal space around items.Setting display to flex enables flexbox. Using space-evenly for justify-content spaces items evenly with equal space around them.
Fill all three blanks to create a flex container that centers items horizontally, aligns them at the start vertically, and does not wrap.
.container {
display: [1];
justify-content: [2];
align-items: [3];
flex-wrap: nowrap;
}block for display which disables flexbox.Set display to flex to enable flexbox. Use center for justify-content to center items horizontally. Use flex-start for align-items to align items at the top vertically.