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 and starts on a new line.
Complete the code to make the element behave like an inline element.
span {
display: [1];
}The inline value makes the element behave like an inline element, which does not start on a new line and only takes as much width as necessary.
Fix the error in the code to make the element behave like an inline-block element.
button {
display: [1];
width: 100px;
height: 40px;
}The inline-block value allows the element to flow inline but also accept width and height.
Fill both blanks to create a CSS rule that makes a paragraph inline-block and centers it horizontally.
p {
display: [1];
margin-left: [2];
margin-right: [2];
}Setting display to inline-block allows the paragraph to have width and height but flow inline. Using margin-left and margin-right as auto centers the element horizontally.
Fill all three blanks to create a CSS rule that makes a div inline-block, sets its width to 200px, and adds a 10px margin.
div {
display: [1];
width: [2];
margin: [3];
}Setting display to inline-block allows the div to flow inline but accept width and margin. The width is set to 200px and margin to 10px to add space around it.