CSS Flexbox Flashcards
1
Q
Flex grow: 0 vs. 1. What’s the difference?
A
0 means an element should not grow beyond its default size; 1 means it should grow to fit available space. Two items with flex-grow: 1 will grow at an equal rate.
2
Q
Flex shrink 0 vs 1: what’s the difference?
A
0 means an element should not shrink at all beyond it’s default size; 1 means it should shrink at a rate equal to other items with flex-shrink: 1.
3
Q
What is default for flex-direction?
A
row