I mentioned this elsewhere but...
If you reset the HTML font size to 62.5%, you can then declare REMβs in values that seem much more familiar.
html { font-size: 62.5%; /* equal to 10px */ } body { font-size: 1.6rem; /* equal to 16px */ }
Less mucking about trying to remember any ratios.
In some cases it also makes setting unitless line heights easier to under stand I relation to the declared font-size
font-size
html { font-size: 62.5%; /* equal to 10px */ } body { font-size: 1.6rem; /* equal to 16px */ line-height: 1.5; /* equal to 24px */ }
That is actually a very nice way to do it!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I mentioned this elsewhere but...
If you reset the HTML font size to 62.5%, you can then declare REMβs in values that seem much more familiar.
Less mucking about trying to remember any ratios.
In some cases it also makes setting unitless line heights easier to under stand I relation to the declared
font-size
That is actually a very nice way to do it!