4 ms·
There's a better way to do this: html { font-size: clamp(16px, 2vw, 20px); } Pick a reasonable minimum and maximum, and between them a calculated value th
by velcrovan 2y ago
There's a better way to do this:
html { font-size: clamp(16px, 2vw, 20px); }
Pick a reasonable minimum and maximum, and between them a calculated value that scales with viewport width. (You can see this in action in the sites in my bio.)