HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 12. BOX MODEL 134


Required Answer: 47


Exam Question 239(p.350):Typically how many px are there per inch?
Required Answer: 96


12.4.3 Absolute Lengths: cm, mm, in, pt, pc


Some, likein(inch),cm, andmm, are designed to work well with physically
printed media or PDF files. The browser will adopt some conversion factor
between inches and pixels for displaying things on the screen, depending on
how far from the viewer’s eyes the screen is typically located.


cm: Distance can be measured in centimeters.


mm: Distance can be measured in millimeters.


in: Distance can be measured in inches.


pt: Distance can be measured in points. This is a traditional printer’s
measure. A point is 1/72 of an inch. It is also the way we measure font
sizes.


Exam Question 240(p.350): How many pt are there per inch?
Required Answer: 72


Exam Question 241(p.350): What does pt stand for?
Required Answer:point


pc: Distance can be measured in picas. This is a traditional printer’s mea-
sure. A pica is 12 points, 1/6 of an inch. Typically this is the distance
between baselines of consecutive rows of single-spaced print (text in para-
graph form).


Exam Question 242(p.350): How many pc are there per inch?
Acceptable Answer: 6


Exam Question 243(p.350): What does pc stand for?
Acceptable Answer:pica


12.4.4 Font-Relative Lengths: em, ex, ch


Some, likeem,ex, andchare designed to scale up or down according to
the font of the nearby content.

Free download pdf