Complete the code to make the element a block-level element.
div {
display: [1];
}The block value makes the element a block-level element, which takes the full width available.
Complete the code to hide the element from the page.
.hidden {
display: [1];
}The none value hides the element completely, removing it from the layout.
Fix the error in the code to make the container a flex container.
.container {
display: [1];
justify-content: center;
}The flex value makes the container a flex container, enabling flexbox layout properties like justify-content.
Fill both blanks to create a grid container with two columns.
.grid-container {
display: [1];
grid-template-columns: repeat([2], 1fr);
}Setting display to grid creates a grid container. Using repeat(2, 1fr) creates two equal columns.
Fill all three blanks to create a flex container that centers items horizontally and vertically.
.centered-flex {
display: [1];
justify-content: [2];
align-items: [3];
}Setting display to flex creates a flex container. Using justify-content: center and align-items: center centers items horizontally and vertically.