I have set the html and body to 15px
.
And afterwards I have set some padding of an element to 1rem
, which should translate to 15px
. But instead it's giving me 16px
...
Any idea why?
--
Browser: Google Chrome. MacOS.
CSS: Stylus
Framework: Vue.js + NUXT
The answer is to also set the following:
:root {
font-size: 15px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With