In the future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:
Please include a link to the DD script(s) in question in your post. See this post for more information.
OK, the problem is that (I assume for formatting reasons) you elected to make the goto element separate from the heading, ex:
Code:
. . . allard<br>
Flush of ostriches<br>
Fold of sheep </p>
<p> </p>
<p> </p>
<p><a id="g"></a></p>
<h4 class="green">G<a href="#top"><img src="../assets/images/top2.png" alt="Top of Page" width="510" height="18"></a></h4>
<p>Gaggle of geese<br>
Gallop of greyhounds<br>
Gam of whale . . .
However, that element has no layout. Chrome is just being picky, but it's within its rights not to scroll to it because in some respects it technically isn't there. Like it has no width or height and (probably to Chrome and this is important) no offset, so the browser doesn't know where it is.
If you want to keep the same layout and have Chrome recognize the element as having offset, you can move the id to the previous p tag and get rid of the one with the a tag like so:
Code:
. . . allard<br>
Flush of ostriches<br>
Fold of sheep </p>
<p> </p>
<p id="g"> </p>
<h4 class="green">G<a href="#top"><img src="../assets/images/top2.png" alt="Top of Page" width="510" height="18"></a></h4>
<p>Gaggle of geese<br>
Gallop of greyhounds<br>
Gam of whale . . .
Remember to get rid of the <p><a id="g"></a></p>, and do this similarly for all of the letters. It will layout the same because even in browsers where <p><a id="g"></a></p> works, it still has no layout space.
Bookmarks