4 ms·
Yup - I increase the font size a lot these days, especially on mobile. I haven’t looked into the best way to write web pages that accommodate zooming, but ther
by mjgs 6y ago
Yup - I increase the font size a lot these days, especially on mobile.
I haven’t looked into the best way to write web pages that accommodate zooming, but there is a huge variety in how pages perform as you zoom.
Loads of sites don’t do it properly, where you zoom and all the text and images get squashed in the middle of the page, or where the elements disappear off the side of the page. The other horrid thing is when you zoom and then the text is the right size but you end up having to scroll left to right to read the text.
The best sites perform perfectly at every zoom level, with all the content resizing properly so the reading experience is always pleasant.
I’d love to read some tutorials on how to ensure your website performs in this way. In my opinion it’s one of the signs of a really skill-full developer.
- jraph 6y agoPages are perfect by default (except for a serif font being by default on some screens and the line length not being limited to something readable). The less you do, the best the web page behaves. The more you fight against default behaviors / layouts, the more things break. But more specifically, be careful with margins, they grow with the zoom level, often more than wanted. Same for position. And be careful with sizes fixed using something else than percentages for the same reasons. If you don't want a block be larger than 100ish characters for readability, use max-width with a font related unit, not straight width and not some other kind of unit.