CSS-LAYOUT-CLASSES Flashcards
1
Q
Why do two div elements “vertically stack” on one another by default?
A
“Div” elements “vertically stack” on one another by default because they are default block elements.
2
Q
What is the default flex-direction of an element with display: flex?
A
The default flex-direction of an element with “display: flex” is “row” (left to right).