September 2014
Intermediate to advanced
148 pages
2h 15m
English
CHAPTER 9
![]()
Units
There are several units to choose from when specifying the size of a property’s value.
Absolute units
The absolute units of length are centimeter (cm), millimeter (mm), and inch (in). Although these units are meant to look the same regardless of the screen resolution, it is not always the case because web browsers do not always know the exact physical size of the display medium.
.one-cm { font-size: 1cm; }.one-mm { font-size: 1mm; }.one-in { font-size: 1in; }
These units are mainly useful when the size of the output medium is known, such as for content that will be printed to paper. They are not recommended for screen displays ...
Read now
Unlock full access