Responsive Web Degisn Flashcards

1
Q

What is a media query?

A

A technique that changes the presentation of content based on different viewport sizes

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

What is a viewport?

A

The user’s visible area of a webpage, it is different depending on the device used to access the site

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

How do you use a media query?

A

@media (max-width: (number)px) { /* CSS Rules */ }

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

How do you make sure an image is never wider than it’s container?

A

max-width: 100%;

height: auto;

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

What are the four viewport units?

A

vw (viewport width): 10vw would be 10% of the viewport’s width.
vh (viewport height): 3vh would be 3% of the viewport’s height.
vmin (viewport minimum): 70vmin would be 70% of the viewport’s smaller dimension (height or width).
vmax (viewport maximum): 100vmax would be 100% of the viewport’s bigger dimension (height or width).

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