3 ms·
It is a best practice (and required by certain WCAG 2.0 guidelines) to allow users to adjust the text size to meet their needs. The 2.1 AA guideline says that w
by oatmealsnap 9y ago
It is a best practice (and required by certain WCAG 2.0 guidelines) to allow users to adjust the text size to meet their needs. The 2.1 AA guideline says that websites must scale up to 400% and still be usable.
In CSS, I almost entirely use relative units so that I don't need to worry about how things will scale. If the user wants/needs their text to be larger, they will also want/need [any other element] to be larger, as well.
Of course, if you let your buttons scale as much as your text does, you can end up with buttons taking up the entire screen. I typically solve that by using max-sizing on an element, rather than using `in` or `cm`...I can't recall ever using physical units in web design.