Units Flashcards
Give examples of relative units.
em, vh, vw, rem, ex, ch
Is vh absolute or relative? and what is it?
relative, and it’s 1/100th of the viewport’s height.
Is vw absolute or relative? and what is it?
relative, and it’s 1/100th of the viewport’s width.
What are some examples of absolute units?
px, cm, mm, in, pt, pc
What is the name of the unit pc? And explain what it is.
pica, and it’s 12pt
What is the name of the unit pt? And explain what it is.
point, and it’s 1/72th of an inch
Is ch absolute or relative, and what is it?
relative, and it’s the width of the number 0.
Is ex absolute or relative, and what is it?
relative, and it’s the height of the lowercase letter x.
What does using a percentage for font-size do?
it makes the font-size a percentage of the element’s inherited font-size.
Is em absolute or relative, and what is it?
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.