em

The em CSS unit specifies the length of the element relative to the font size of the element.

Syntax

<number>em

Examples

CSS

JS

Internal

ch

ex

rem

External

World Wide Web Consortium (W3C)

Home Menu