3 ms·
The benefit of rem is of course that if I want all fonts to be 1.5 times bigger, al I need is: html { font-size: 150%; } Then, 1 rem = 16 px will become 1 rem
by leokennis 6y ago
The benefit of rem is of course that if I want all fonts to be 1.5 times bigger, al I need is:
html { font-size: 150%; }
Then, 1 rem = 16 px will become 1 rem = 24 px etc.
With pixels, I will always be stuck with having to update every value in my CSS.