Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing iPhone scaling when rotated

When I rotate my iPhone into landscape mode, the iPhone automatically bumps the text size up.

What is the best way to prevent this? I'd like rotation to give the visitor more text to read, not a larger font. Is JavaScript like this the only way to go?

like image 794
ceejayoz Avatar asked May 26 '09 20:05

ceejayoz


1 Answers

You could use this CSS property

-webkit-text-size-adjust: none;
like image 132
nduplessis Avatar answered Oct 09 '22 01:10

nduplessis