There’s this way that you can set the root font size to 10 in HTML that makes 1 rem = 10px. Pls, how can I do that in
Not 100% true, REM is like EM but calculated on the documentElement of the current website instead of the parentElement, in fact if you set
html {
font-size: 0.625%;
}
inside an embed, you get exactly the result the OP wants, and 1rem will correspond to 10px in default browser conditions
1 Like