Dodona gives you answers

Archive for February 2011

How do I stop the iPhone browser from scaling my fonts?

leave a comment »

Wondering why text in your iPhone browser looks bigger than specified in your style sheet? This is because the iPhone webkit browser automatically scales certain parts of a webpage to improve readability. But what if you don’t want this, for example because it breaks your layout? Well, there is an easy way to turn it off. Just add this code to your CSS body element (or any other element you want to stop scaling):

body {
-webkit-text-size-adjust:none;
}

Link: Stop adjusting the text size in iphone…
Status: works

Advertisements

Written by lutsen

February 24, 2011 at 5:16 pm

Posted in Web