CSS Layout Classes Flashcards
1
Q
Why do two div elements “vertically stack” on one another by default?
A
because they are block elements
2
Q
What is the default flex-direction of an element with display: flex?
A
none
3
Q
What are the three primary components of a page layout? (Which helper classes do you need?)
A
The top (Header), middle (Aside plus Article), and bottom (Footer)
4
Q
What is the minimum number of columns that you should put in a row?
A
one at least
5
Q
What is the purpose of a container?
A
contain the entire layout