By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,045 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,045 IT Pros & Developers. It's quick & easy.

#anchor using firefox

P: 3
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:

Expand|Select|Wrap|Line Numbers
  1. <li><a href="directions.php#local">Local Map</a></li> 
  2.  
This is the nav code and this id the anchor:
Expand|Select|Wrap|Line Numbers
  1. <p id="local" class="mapHead">Schematic Map of the Local Area</p>
  2.  
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
Mar 14 '09 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,390
instead of the id use the name-attribute and an <a name=""> </a> anchor ...
Mar 15 '09 #2

P: 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.
Mar 15 '09 #3

gits
Expert Mod 5K+
P: 5,390
nope ... i mean an correct anchor tag instead of just using an id or name with a <p>-tag
Mar 15 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.