0

I made a site that has an ordered list, for which some items on the list are links, and others are not. Everything renders fine on a PC. On my iPhone, however, the numbers in the ordered list show up smaller than they are supposed to if the list item is a link.

To make sure that it wasn't just some obscure issue with my particular html, css, etc., I made the following html document, called test_1.html:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
   <ol>
   <li>here.</li>
   <li><a href="test_1.html">here.</a></li>
   </ol>   
</body>
</html>

The issue persists even with this extremely minimal example.

Does anyone know how to fix this?

Thanks!

user3558855
  • 303
  • 4
  • 17

1 Answers1

0

I stumbled onto a fix for this issue here. The solution was the following CSS code:

body {
    -webkit-text-size-adjust: 100%;
}

Incidentally, this also fixed an issue with the site on my iPhone where one of the fonts on the page would not always load at its assigned size, but would seemingly randomly change sizes sometimes when I refreshed the page. E.g., it would sometimes load at its assigned font-size: 34px;, but other times load at e.g., 14px.

Community
  • 1
  • 1
user3558855
  • 303
  • 4
  • 17