set default rem css

Solutions on MaxInterview for set default rem css by the best coders in the world

showing results for - "set default rem css"
Anouk
20 Jul 2017
1/* Document level adjustments */
2html {
3  font-size: 17px;
4}
5@media (max-width: 900px) {
6  html { font-size: 15px; }
7}
8@media (max-width: 400px) {
9  html { font-size: 13px; }
10}
11
12/* Type will scale with document */
13h1 {
14  font-size: 3rem;
15}
16h2 {
17  font-size: 2.5rem;
18}
19h3 {
20  font-size: 2rem;
21}
queries leading to this page
set default rem cssset default rem css