CSS Responsive Flashcards

1
Q

Widths of your content areas should use _____ units such as _______. This allows the widths to automatically adjust based on the width.

A

Widths of your content areas should use relative units such as percentages. This allows the widths to automatically adjust based on the width.

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

When the layout becomes less effective, even when fluid grids are used, it is time to consider _____ ______.

A

When the layout becomes less effective, even when fluid grids are used, it is time to consider Media Queries.

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

Media Queries allow Web designers to apply different CSS based on a device’s properties such as ______, _____, _____, and _____ _____.

A

Media Queries allow Web designers to apply different CSS based on a device’s properties such as width, height, orientation, and pixel ratio.

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

We can include Media Queries in 3 ways:

A

1) Call an external stylesheet using the link element
2) Call an external stylesheet using the @import directive
3) Use embedded style elements

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

Call an external stylesheet using the link element (SYNTAX)

A

Syntax:

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

Call an external stylesheet using the @import directive (SYNTAX)

A

Syntax: @import url(‘file’) logic media and (expression);

@import url(“main.css”);
@import url(“small.css”) screen and (max-width: 480px);
@import url(“med.css”) screen and (max-width: 760px);

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

Use embedded style elements

A

Syntax: @media logic media and (expression) {rules}

Within the same CSS file:
h1 {
font-size: 36px;
}

@media screen and (max-width: 480px){ 
	h1 { 
	   font-size: 18px;
	   } 
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Common breakpoints for media queries:

A
Extra small <576px
Small ≥576px
Medium ≥768px
Large ≥992px
Extra large ≥1200px
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

While there are recommended breakpoints based on experience, common device attributes, and framework implementations, developers should add media queries when the ________ demands it.

A

While there are recommended breakpoints based on experience, common device attributes, and framework implementations, developers should add media queries when the content demands it.

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

Your decisions should be _______-driven.

A

Your decisions should be content-driven.

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

Name some common media types:

A

all-All devices
3d-glasses-3D Scenarios
aural-Screen readers
braille-Braille Tactile devices
embossed-Paged Braille devices
handheld-Device with a small screen / handheld devices
projection-Projection presentations screen
screen-Computer screen (or mobile screen) speech synthesizers
tty-Teletype or similar terminal
tv-Low-resolution display / Television devices
print-Printed output and print preview

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

(max-_____: 480px) used for browser viewport sizes that are __ ______ than 480px

A

(max-width: 480px) used for browser viewport sizes that are no wider than 480px

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

(min-____: 640px) used for browser viewport sizes that are __ _____ 640px

A

(min-width: 640px) used for browser viewport sizes that are at least 640px

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

(________: landscape) where value can be landscape or portrait

A

(orientation: landscape) where value can be landscape or portrait

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

(____-____:1.5) Target devices based on their pixel density

A

(pixel-ratio:1.5) Target devices based on their pixel density

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