diff --git a/items/2.2.1.html b/items/2.2.1.html index d22c127..fe84505 100644 --- a/items/2.2.1.html +++ b/items/2.2.1.html @@ -10,7 +10,7 @@
However that example is bad as line-height
should never be applied using absolute units such as points or pixels. In the prior example, when text is resized in a browser, the font-size increases (to 18 pt for example) but the line-height may remain at 15 pt. So instead of the lines being spaced apart, they would actually overlap.
A better approach is to make use of a unique characteristic of the line-height
property: it is the only CSS property for which non-zero numeric values are allowed without units. The preceding example could also be coded as:
A better approach is to use a unitless value. The preceding example could also be coded as:
p {
font-size: 12pt;