CSS Box Model, FlexBox, Grid Classes Flashcards
1
Q
What CSS properties make up the box model?
A
Border, margin, padding, and content (although content is not a property)
2
Q
Which CSS property pushes boxes away from each other?
A
Margin
3
Q
Which CSS property add space between a box’s content and its border?
A
Padding
4
Q
What is the default flex-direction of a flex container?
A
Row
5
Q
What is the default flex-wrap of a flex container?
A
No wrap
6
Q
Why do two div elements “vertically stack” on one another by default?
A
Because they are block elements
7
Q
What is the default flex-direction of an element with display: flex?
A
Row