Type size & line height
Convert pixel or rem font sizes and calculate a unitless line height for CSS.
How to use Type size & line height
- Enter a root size and your font size.
- Choose pixels or rem and enter the line height in pixels.
- Copy the resulting CSS.
Use the actual root computed size for the project rather than assuming 16 pixels.