How to avoid iOS automatic font size adjustment?

Alan H. picture Alan H. · Jun 2, 2011 · Viewed 54.4k times · Source

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?

Answer

BoltClock picture BoltClock · Jun 2, 2011
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.