Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Fall 2019

## Font Sizes: Relative vs. Absolute

As a general guideline with CSS, relative measurements are better than absolute measurements.

- Relative
  - Relative to UA settings:
    `xx-small | x-small | small | medium | large | x-large | xx-large`
  - `rem` - relative to the html em (root em)
  - Relative to context:
    `larger | smaller`
  - Percentage (%)
  - "em" units
- Absolute
  - "pt" sizes (8pt, 10pt, 12pt)

Copyright © David Heitmeyer