css-font Flashcards

1
Q

Name two units that can be used to adjust font-size in CSS?

A

Pixels: are most common because they allow designers very precise control over how much space their text takes up.
Percentages: the default size of in-browser text is 16px so 75% would be 12px and 200% would be 32px. So if you use these you calculate the size of the text you want based on the default size of the text used in browsers
Ems: ems is equivalent to the length of the letter m

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

What CSS property controls the font used for the text inside an element?

A

The CSS property that controls the font used for the text inside an element is font-family.

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