Media Queries Flashcards

1
Q

What is a media query?

A

A CSS3 module, allowing content rendering to adapt to certain conditions eg screen size.

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

How do you add a media query in CSS

A

@media screen and (min-width xxxpx){

}

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

What properties can be added into a media query?

A
  1. Min/Max width
  2. Height
  3. Orientation
  4. Aspect Ratio
  5. Resolution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What characters do you use to combine media queries?

A

The use of a ‘,’ (comma) means OR

‘and’ means BOTH

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

Why is responsive design also good for developers?

A

Ability to code faster

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

What is a breakpoint and why do we create a breakpoint?

A

Breakpoints are a points where the website responds according to the device width.
Breakpoints are created by allowing your browser to tell you when your layout breaks.

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

Do background images change or are they fixed?

A

Background images do not change. Position of image controls here it is cropped.

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

How do you make flexible images?

A

Give the image a width and percentage. (width is related to parent size)
Give them a min/max-width (this related to image size)

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

Do background cover images change?

A

They do not change. It takes up the width at 100% but height can be cropped. Give a height to remove the crop.

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