11.1. Use only relative font sizes (em, %, small, etc.)

To set the font size, use only relative units in CSS font-size such as em, %, rem or keywords (x-small, small, etc.).

Do not use absolute units such as pt, cm, etc.


Although the pixel (px) can be used to define font size, it can prevent font size increase in some cases.

We strongly advise against using it.


This recommendation does not apply to CSS print (media type print).

Find out more


Add a comment

Required fields are marked *.

Back to top