Forum Moderators: open

Message Too Old, No Replies

Name attribute half hearted in Firefox

Using anchors to reduce vertical scrolling

         

gstick

7:20 pm on May 2, 2007 (gmt 0)

10+ Year Member



An intra page link from the top of the page works fine in IE7. However, Firefox travels about half way to the target. It leaves the target below the window. This requires scrolling for the viewer to find the target.

Has anyone had this problem? Is there a fix for it?

tedster

8:33 pm on May 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This can sometimes happen when the target anchor is in a nested table - is that the case here? It's been one of the drawbacks of a table-based layout.

gstick

10:23 pm on May 2, 2007 (gmt 0)

10+ Year Member



There is no table involved. The target is an h1 heading of a section of text.

tedster

2:45 am on May 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, scratch one idea. Does your page validate at the W3C?

vincevincevince

3:13 am on May 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It normally works fine if the link is on the same page... it can be buggy when the link is on another page and you use CSS or Tables for layout as it calculates the position to scroll to before rendering external content.

gstick

1:34 pm on May 3, 2007 (gmt 0)

10+ Year Member



I checked validation. There was a css problem (which I wouldn't have guessed was related). When fixed the Firefox half-hearted effort become whole-hearted.

Thanks everybody