The Box Model Flashcards

1
Q

What statement about this padding declaration is correct?

padding: 20px 40px;

A

a padding of 20px is applied to the top and bottom of the element, and 40px is applied to the left and right sides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What area exists outside of the box?

A

margin area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The innermost area of a box is called the:

A

content area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An _____ element only takes up as much width as it needs and does not force any new lines

A

inline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

T/F: Block elements form a separate block that takes up the full width available based on the width of the parent element.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Property that forces the padding into the width of the div.

A

box-sizing: border-box;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Property that automatically provides scrollbars if and where they are needed.

A

overflow: auto;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A popular way to contain floats without resorting to using presentational markup.

A
  • micro clearfix hack

- inline-block is better

How well did you know this?
1
Not at all
2
3
4
5
Perfectly