Encountering an issue with a basic CSS-Layout. Everything looks good on desktop browsers, but iPhone's Mobile Safari is causing some trouble. It seems that using style="float:right" conflicts with the automatic font size adjustments made by Mobile Safari. Although the code works perfectly on desktop, on the iPhone "Left" and "Following text" appear significantly larger than "Right":
Left<span style="float:right">Right</span>
<p>Following text</p>
It appears that Mobile Safari's auto-resizing is not affecting the floated word, only the others. One suggestion mentioned here is to add -webkit-text-size-adjust: 100%
like this:
<body style="-webkit-text-size-adjust: 100%">
Left<span style="float:right">Right</span>
<p>Following text</p>
</body>
However, I would prefer to retain Mobile Safari's intelligence in adjusting font sizes for better readability. Additionally, I am looking to avoid creating separate layouts for various screen sizes.
So, is there a more iOS-friendly way to align words to the left and right in the same line of text?