Complete the code to set the content area width to 50rem.
main { width: [1]; }px) which are not scalable.The width property controls the content area width. Using 50rem sets it to 50 times the root font size, which is responsive.
Complete the code to add 2rem padding inside the content area.
section { padding: [1]; }px which is fixed size and less accessible.auto which does not work for padding.The padding property adds space inside the element. 2rem adds space relative to the root font size, making it accessible and consistent.
Fix the error in the code to correctly set the content area margin to center horizontally.
article { margin: [1] auto; }center which is not a valid margin value.auto for top and bottom margin which causes vertical centering.To center an element horizontally, set the left and right margins to auto and top and bottom margins to 0. The code uses shorthand margin: 0 auto;.
Fill both blanks to create a content area with a max width of 60rem and automatic horizontal margin.
div.content { max-width: [1]; margin: 0 [2]; }width instead of max-width.0 instead of auto for horizontal margins.Setting max-width: 60rem; limits the content width. Using margin: 0 auto; centers the content horizontally.
Fill all three blanks to create a responsive content area with padding, max width, and centered margin.
section.wrapper { padding: [1]; max-width: [2]; margin: 0 [3]; }1.5rem for padding instead of 2rem as required.0 instead of auto for horizontal margins.Padding of 2rem adds space inside. max-width: 60rem; limits width. margin: 0 auto; centers horizontally.