CSS Flashcards
1
Q
Why use flex?
A
Flex solves alignment issues that would previously have been solved via clearfix.
2
Q
How do you use flex on an element?
A
display: flex;
3
Q
How do you set up a media query with a range of 320px to 480px ?
A
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px) { … }
4
Q
What does this code do?
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px) { … }
A
Set up a media query with a range of 320px to 480px