Chapter 5: Multiple Choice
The code that follows padding: .5em 0 .25em; applies this padding to an element: a. .5em above, 0 left, and .25em below b. .5em above, 0 left and right, and .25em below c. .5em above, 0 right, and .25em below d. .5em above and below, 0 right, and .25em left
.5em above, 0 left and right, and .25em below
Which of the following formatting can you NOT apply to boxes using CSS3? a. rounded corners b. linear gradients c. radial gradients d. shadows
radial gradients
You use a reset selector to a. set the margins and padding for all elements to zero b. set inherited properties to their default values c. set the font sizes for all text elements to their defaults d. set the background color for all elements to white
set the margins and padding for all elements to zero
The code that follows border-style: solid none; means that the box should have a. a solid top border b. solid top and bottom borders c. solid borders on all four sides d. solid borders on all four sides and no background image
solid top and bottom borders
In the code that follows margin: 0 auto; the auto keyword means a. to automatically adjust the margins for the element whenever necessary b. to center the element horizontally within the containing block c. to center the element vertically within the containing block d. to automatically align the element based on the size of the browser window
to center the element horizontally within the containing block
To calculate the height of a box when using the box model, you add the height of the content area to the sum of the heights of the a. top and bottom margins and top and bottom padding b. top and bottom borders, top and bottom margins, and top and bottom padding c. top and bottom borders, top margin, and bottom margin d. top and bottom borders, top padding, and bottom padding
top and bottom borders, top and bottom margins, and top and bottom padding