Open azayneeva opened 7 years ago
I like using viewport units for the body
font size. Two things you could do to improve it:
Add a normal fallback font-size
for older browsers that don't support viewport units (CSS cascades so if you put this first it will be overwritten by the second for supporting browsers)
Use calc to ensure the font doesn't get too small. You can do font-size: calc(1em + 1vw);
and that will ensure the font is at least 1em
.
Here's a good article if you want to take this to the next level:
Please, consider making font size responsive