Complete the code to make the container a flex container.
.container {
display: [1];
}block or inline instead of flex.grid with flexbox.To create a flex container, the display property must be set to flex.
Complete the code to align items vertically in the center inside the flex container.
.container {
display: flex;
align-items: [1];
}flex-start or flex-end which align items to top or bottom.stretch which stretches items to fill container height.The align-items: center; property centers items vertically inside a flex container.
Fix the error in the code to make the flex container wrap its items to the next line.
.container {
display: flex;
flex-wrap: [1];
}nowrap which prevents wrapping.no-wrap which is not recognized.The correct value to allow flex items to wrap is wrap. nowrap disables wrapping.
Fill both blanks to create a flex container that centers items horizontally and vertically.
.container {
display: [1];
justify-content: [2];
align-items: center;
}block or inline for display which disables flexbox.justify-content like flex.Set display: flex; to create a flex container. Use justify-content: center; to center items horizontally.
Fill all three blanks to create a flex container that wraps items and stretches them vertically.
.container {
display: [1];
flex-wrap: [2];
align-items: [3];
}block instead of flex for display.nowrap instead of wrap for flex-wrap.center instead of stretch for align-items.Use display: flex; to create a flex container. flex-wrap: wrap; allows items to wrap. align-items: stretch; makes items stretch vertically.