Pixels are the smallest unit on a display. Pixels can be a useful way to specify font size, but the drawback is that if you specify pixels, that overrides the custom font size option in Internet Explorer.
pt (points): A point is equal to 1/72 inch. Points (and picas) are classic typeface measurements. Most browsers default to a 12-point serif typeface.
mm (millimeters): A millimeter is .0394 inches, so one inch contains roughly 26 millimeters. One centimeter contains 10 millimeters. Much of the world uses this metric system.
em: Em is a unit of measurement derived from the approximate width of the letter m of a font. This is considered generally the best way to specify font size in CSS, although few designers follow this advice.
% (percent): Percentages are excellent for specifying relative size (it can be relative to an ancestor, the parent, and so on).
pt (points): A point is equal to 1/72 inch. Points (and picas) are classic typeface measurements. Most browsers default to a 12-point serif typeface.
mm (millimeters): A millimeter is .0394 inches, so one inch contains roughly 26 millimeters. One centimeter contains 10 millimeters. Much of the world uses this metric system.
em: Em is a unit of measurement derived from the approximate width of the letter m of a font. This is considered generally the best way to specify font size in CSS, although few designers follow this advice.
% (percent): Percentages are excellent for specifying relative size (it can be relative to an ancestor, the parent, and so on).
No comments:
Post a Comment