I have a simple snippet with a phone number composed by a one letter and 12 numbers, its a simple text inside a p element, In a desktop browser all looks fine, but in an iPhone browser the letter p
looks fine but the rest of the number looks very small and there is a linebreak.
p.style3 {
font-size: 3rem !important;
font-family: Georgia, "Times New Roman", Times, serif !important;
text-rendering: optimizeLegibility;
font-style: italic;
font-weight: lighter;
white-space: nowrap;
}
<p class="style3">p. 706.467.3000</p>
Why does Safari on iOS show this behavior?
Try this (http://codepen.io/sergdenisov/pen/ZGBEvR):
HTML:
<meta name="format-detection" content="telephone=no"/>
<p class="style3">p. 706.467.3000</p>
CSS:
p.style3 {
-webkit-text-size-adjust: 100%;
font-size: 3rem !important;
font-family: Georgia, "Times New Roman", Times, serif !important;
text-rendering: optimizeLegibility;
font-style: italic;
font-weight: lighter;
white-space: nowrap;
}
P.S. <meta>
should lie in <head>
.