CIS 332 Test 2 Quiz 5
The code that follows padding: .5em 0 .25em; applies this padding to an element:
.5em above, 0 left and right, and .25em below
If the bottom margin for one element is 1.5em and the top margin for the element below it is 1em, how large is the margin between the two elements when the page is rendered in a browser?
1.5em
By default, the element in the box model is
as tall as it needs to be for its contents
If you set the background color for the body of a page to blue and you don't set the background color for a section within the body, the background of the section will be
blue
Which CSS snippet would set the border radius for a section element as shown in this screenshot?
border-radius: 10px 20px 0 20px;
Which CSS snippet would set the border shadows for a section element as shown in this screenshot?
box-shadow: 3px 3px 4px 4px red;
You use a reset selector to
set the margins and padding for all elements to zero
In the box model for an element, the border
is between the padding and the margin
Which of the following formatting can you NOT apply to boxes using CSS3?
radial gradients
By default, if you specify a background image for a block element, the image will be
repeated horizontally and vertically so it fills the elemen
The code that follows border-style: solid none; means that the box should have
solid top and bottom borders
When you set the border for a block element, you can set
the color, style, and width
If you use a reset selector for a page, you need to set
the margins and padding for all the elements of the page
In the code that follows margin: 0 auto; the auto keyword means
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
top and bottom borders, top and bottom margins, and top and bottom padding