Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid iOS automatic font size adjustment?

I am NOT talking about zooming the page, but rather the way MobileSafari on iOS automatically bumps up some font sizes sometimes.

When, exactly, is this done? Can it be prevented or discouraged?

like image 949
Alan H. Avatar asked Jun 02 '11 05:06

Alan H.


People also ask

Why does my font size keep changing on iPhone?

The iPhone, however, gives you a single font. If the font changes, it's because the app you have open changed it, not you. But that doesn't mean you can't edit the text at all. Every iPhone lets you change the font size, making it either bigger or smaller.

How do I reset the default font size on my iPhone?

Go to Settings > Accessibility > Display & Text Size. Adjust any of the following: Bold Text: Display the text in boldface characters. Larger Text: Turn on Larger Accessibility Sizes, then adjust the text size using the Font Size slider.


1 Answers

body {     -webkit-text-size-adjust: 100%; } 

Just make sure all your text is at a legible size in the first place. The iPhone and iPod touch have a rather small screen, so keep that in mind too.

like image 198
BoltClock Avatar answered Sep 29 '22 12:09

BoltClock