css-box-model Flashcards

1
Q

What CSS properties make up the box model?

A

Border - Every box has a border (even if it is not visible or is specified to be 0 pixels wide). The border separates the edge of one box from another
Margin - Margins sit outside the edge of the border. You can set the width of a margin to create a gap between the borders of two adjacent boxes.
Padding - Padding is the space between the border of a box and any content contained within it. Adding padding can increase the readability of its contents.

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

Which CSS property pushes boxes away from each other?

A

Margin

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

Which CSS property add space between a box’s content and its border?

A

Padding

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