Created
May 11, 2019 19:53
-
-
Save AvgustPol/adc91285d682f61f1d74ceb084f7273d to your computer and use it in GitHub Desktop.
[CSS] Learning rem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------- | |
| [RU:] | |
| ------------------------------------- | |
| Размер rem берется от тега html | |
| 1rem всегда равен значению, прописаному в html теге . | |
| e.g. | |
| html, body { //главное прописать для html | |
| font-size: 16px; | |
| } | |
| .foo { | |
| font-size: 1rem; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------- | |
| [EN:] | |
| ------------------------------------- | |
| The size of the rem is taken from the html tag | |
| 1rem is always equal to the value written in the html tag. | |
| e.g. | |
| html, body { //important to register for html | |
| font-size: 16px; | |
| } | |
| .foo { | |
| font-size: 1rem; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment