Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

em vs rem

1EM or 1REM (r = root em)
The difference is inheritance.
The Rem value is based on the root element (html).
What is meant here is the font size for html and not the font size for the documet body.
... Em is based on the font size of each
Parent element.
 
PREVIOUS NEXT
Tagged: #em #rem
ADD COMMENT
Topic
Name
8+7 =