On mobile Safari (iPod/iPhone), named anchors do not work if the body margins are specified (in external CSS or inline).
The named anchor works just fine if I remove the CSS-specified margins, but as soon as I re-add them, the named anchors do not work again. I spent 15 minutes removing different chunks of the code to determine what the problem was, but I can find no fix through Google searches or the like.
Any suggestions or knowledge on the subject?
Thanks,
Matt
Code:
body {
background-color: #ffffff;
margin-top: 0px;
margin-left:0px;
}
---------------------
<a id="top" name="top">This is the top</a>
<a href="#top" class="center">Back to top^</a>
The named anchor works just fine if I remove the CSS-specified margins, but as soon as I re-add them, the named anchors do not work again. I spent 15 minutes removing different chunks of the code to determine what the problem was, but I can find no fix through Google searches or the like.
Any suggestions or knowledge on the subject?
Thanks,
Matt