1

i found out the right answer (not to adjust text size on rotation !) Preserve HTML font-size when iPhone orientation changes from portrait to landscape

but being very naive to css how to use it inline ?

i used as follows, but it did not work

<html>
<head>
</head>
<body style ="-webkit-text-size-adjust: none;">
<font face="Arial" size="9";>< a href="mailto:subject= mysub&attachment=myatt.doc"> mail this< /a>< br/>< b>< i>Header< /i>< /b>< br/></ font>
</body>
</html>
Community
  • 1
  • 1
sunu
  • 11
  • 1

1 Answers1

0

The example you point to is a style on the html tag, not the body tag as you have done. I suggest you try:

<html style="-webkit-text-size-adjust:none;">

and see how that works. Or you can just put the style into your head section like so:

<head>
<style type="text/css">
html {
    -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
}
</style>
</head>

Interesting trick, I haven't actually ever done this myself.

Alan Moore
  • 6,347
  • 6
  • 50
  • 66