#anchor using firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bruce47500
    New Member
    • Mar 2009
    • 3

    #anchor using firefox

    Hi guys,
    Got a little problem - this time it works ok in IE6 but not in firefox.
    I am using an unordered list to navigate across site pages. On one page I need to return uses to almost the bottom of one page which has been marked with an anchor. This works fine in IE6 but when used with firefox 3.0.7 it returns to the begining of the page. Code as follows:

    Code:
    <li><a href="directions.php#local">Local Map</a></li>
    This is the nav code and this id the anchor:
    Code:
    <p id="local" class="mapHead">Schematic Map of the Local Area</p>
    There has to be a simple answer but at the moment it is eluding me, normall it is IE6 I have trouble with not firefox.
    Would appreciate some suggestions
    Last edited by gits; Mar 15 '09, 05:37 PM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    instead of the id use the name-attribute and an <a name=""> </a> anchor ...

    Comment

    • bruce47500
      New Member
      • Mar 2009
      • 3

      #3
      Thanks Gits
      But I have already tried using name=''anchor' instead of id='anchor' and the only difference is that now IE6 will not return to the anchor point, firefox continues to ignore the anchor. I can not see anything wrong with my code either for the anchor or the link.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        nope ... i mean an correct anchor tag instead of just using an id or name with a <p>-tag

        Comment

        Working...