Units Flashcards

1
Q

Give examples of relative units.

A

em, vh, vw, rem, ex, ch

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

Is vh absolute or relative? and what is it?

A

relative, and it’s 1/100th of the viewport’s height.

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

Is vw absolute or relative? and what is it?

A

relative, and it’s 1/100th of the viewport’s width.

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

What are some examples of absolute units?

A

px, cm, mm, in, pt, pc

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

What is the name of the unit pc? And explain what it is.

A

pica, and it’s 12pt

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

What is the name of the unit pt? And explain what it is.

A

point, and it’s 1/72th of an inch

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

Is ch absolute or relative, and what is it?

A

relative, and it’s the width of the number 0.

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

Is ex absolute or relative, and what is it?

A

relative, and it’s the height of the lowercase letter x.

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

What does using a percentage for font-size do?

A

it makes the font-size a percentage of the element’s inherited font-size.

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

Is em absolute or relative, and what is it?

A

Relative, and 1em is equal to the width of the capital letter M. 1em is also the font-size of the element to which the value is being applied.

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