Complete the code to add space outside the box using margin.
div {
margin: [1];
}The margin property sets the space outside an element. Using 10px adds 10 pixels of space around the element.
Complete the code to add equal margin on all sides of the paragraph.
p {
margin: [1];
}Using 5em sets the margin equally on all sides of the paragraph. The unit em scales with the font size.
Fix the error in the margin shorthand to set top and bottom margin to 10px and left and right margin to 20px.
section {
margin: [1];
}The shorthand margin: 10px 20px; sets top and bottom margins to 10px, and left and right margins to 20px.
Fill both blanks to set margin-top to 15px and margin-left to 5rem.
div {
margin-top: [1];
margin-left: [2];
}Use 15px for margin-top and 5rem for margin-left to set the correct spacing.
Fill all three blanks to create a margin shorthand that sets top margin to 10px, right margin to 20px, and bottom margin to 30px.
article {
margin: [1] [2] [3];
}The margin shorthand with three values sets top, right and left, and bottom margins respectively. Here, top is 10px, right and left are 20px, and bottom is 30px.