REMs units improve responsive/fluid layouts because they .
How is the base/root html set in Webflow? I want to use REMs but don’t know how to set the base html to say 62.5%.
Why REM?
One of the problems with using “em” as font sizes is that they cascade, so you are forever writing rules that select nested elements to reset them back to 1em. The Problem with em-based font sizing is that the font size compounds. A list within a list isn’t 14px, it’s 20px. Go another level deeper and it’s 27px! These issues can be worked around by declaring any child elements to use 1em, avoiding the compounding effect. CSS3 now has rem (“root em”) to prevent that issue.
Example
html { font-size: 62.5%; }
body { font-size: 1.4rem; } /* =14px /
h1 { font-size: 2.4rem; } / =24px */
You had an answer from somebody 4 days ago nd I just noticed I must have accidentally deleted the comment or the user. I’m very sorry about this. Here is the message:
html {
font-size: 17px;
} @media (max-width: 900px) {
html { font-size: 15px; }
} @media (max-width: 400px) {
html { font-size: 13px; }
}
/* Type will scale with document */
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 2rem;
}