CSS terms
How much vertical space ("height") will this div use? div{ height:50px; padding: 5px 10px; margin: 5px; border: 2px; }
74px The width of an element is additive. You need to add the padding, border, and margin to the width to find out how much space is occupied.
How much horizontal space ("width") will this div use? div{ width:50px; padding: 10px; margin: 5px; border: 2px; }
84px The width of an element is additive. You need to add the padding, border, and margin to the width to find out how much space is occupied.
The padding and margin properties can be styled with unique colors. (T/F)
False
Descendant selectors are more specific than child selectors (T/F)
False. The descendant selector will be applied to all links in the nav element, even those that are in a paragraph or other element . The child selector only applies to the links that are directly within the nav. So if the nav has a paragraph with links, those links would NOT be styled.
In the following where is the right, left, top, and bottom values located? div{ border-width:10px 3px 5px 9px; }
Top, Right, Bottom, Left
The id and class selectors are part of the DOM. (T/F)
True
The text-decoration property is used to style links with an underline. What text-decoration value will remove this underline from a link?
none
The list-style-type property applies to:
ordered lists (Unordered lists are styled with shapes, and should not be letters or numbers)
Padding
the space between an element and its border
Margin
the space between elements