CSS Flashcards

1
Q

Why use flex?

A

Flex solves alignment issues that would previously have been solved via clearfix.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you use flex on an element?

A

display: flex;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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) { … }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly