The Box Model Flashcards
What statement about this padding declaration is correct?
padding: 20px 40px;
a padding of 20px is applied to the top and bottom of the element, and 40px is applied to the left and right sides
What area exists outside of the box?
margin area
The innermost area of a box is called the:
content area
An _____ element only takes up as much width as it needs and does not force any new lines
inline
T/F: Block elements form a separate block that takes up the full width available based on the width of the parent element.
True
Property that forces the padding into the width of the div.
box-sizing: border-box;
Property that automatically provides scrollbars if and where they are needed.
overflow: auto;
A popular way to contain floats without resorting to using presentational markup.
- micro clearfix hack
- inline-block is better