The
Using font-relative values is recommended so that the
letter-spacing
property controls the amount of space between each letter in a given element or block of text. Values supported by letter-spacing
include font-relative values (em, rem), parent-relative values (percentage), absolute values (px) and the normal
property, which resets to the font’s default.Using font-relative values is recommended so that the
letter-spacing
increases or decreases appropriately when the font-size is changed, either by design or by user behavior.p { /* 16 * 0.0625 = 1px */ letter-spacing: 0.0625em; }The most important point to note when using
letter-spacing
is that the value specified does not change the default, it is added to the default spacing the browser applies (based on the font metrics). letter-spacing
also supports negative values, which will tighten the appearance of text, rather than loosening it. Read more
Comments
Post a Comment