em

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

Syntax

<number>em

Examples

1 · CSS

2 · JS · Inline

3 · JS · Internal

cap

ch

ex

ic

rem

cap

ch

cm

cqb

cqh

cqi

cqmax

cqmin

cqw

deg

dpcm

dpi

dppx

dvb

dvh

dvi

dvmax

dvmin

dvw

ex

grad

ic

in

lvb

lvh

lvi

lvmax

lvmin

lvw

mm

ms

pc

pt

px

Q

rad

rem

s

svb

svh

svi

svmax

svmin

svw

turn

vb

vh

vi

vmax

vmin

vw

World Wide Web Consortium (W3C)

HomeMenu