Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AvgustPol/adc91285d682f61f1d74ceb084f7273d to your computer and use it in GitHub Desktop.

Select an option

Save AvgustPol/adc91285d682f61f1d74ceb084f7273d to your computer and use it in GitHub Desktop.
[CSS] Learning rem
-------------------------------------
[RU:]
-------------------------------------
Размер rem берется от тега html
1rem всегда равен значению, прописаному в html теге .
e.g.
html, body { //главное прописать для html
font-size: 16px;
}
.foo {
font-size: 1rem;
}
-------------------------------------
[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