๐ธrem
โฑ๐ง under construction -> :root, <html>, document.documentElement
CSS โฉ values โฉ relative โฉ units โฉ rem
โญ rem
ๆฏ โroot emโ ็็ธฎๅฏซ๏ผr
ๆ :root
(<html>
)ใ
/* :root = html */
:root { font-size: 16px; } /* โญ๏ธ ๅฎ็พฉ rem = 16px */
h1 { font-size: 2rem; } /* 2rem = 32px */
p { font-size: 1rem; } /* 1rem = 16px */
Last updated
Was this helpful?