473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

#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:

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
3 2657
gits
5,390 Expert Mod 4TB
instead of the id use the name-attribute and an <a name=""> </a> anchor ...
Mar 15 '09 #2
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
5,390 Expert Mod 4TB
nope ... i mean an correct anchor tag instead of just using an id or name with a <p>-tag
Mar 15 '09 #4

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

Similar topics

9
by: AlanFoust | last post by:
The following PHP code snippet works in Firefox and Opera but NOT Internet Explorer (I'm using IE v 6.0.2xxx) $url = "http://www.theredirectsite.com/testpage.php?IDa=162&IDb=19909#AT2";...
1
by: Jack Fox | last post by:
I am saving some formated html fragments (text, some formatting tags and anchor tags) in a SQL text column then writing it to a page. Something strange is happening with the anchor tags within the...
2
by: Rob McKenna | last post by:
Greetings, This is my first foray into CSS and indeed my first website in general. My goal is to use a liquid(ish) design, no javascript and no tables for layout positioning. Rather foolishly I...
1
by: bob bringas | last post by:
Hi there, I'm having trouble closing an anchor created with DOM methods. I am successfuly creating the anchor, and then giving it an img for its child node, but for some reason, the anchor is...
1
by: Andrew | last post by:
Well, I've a little trouble that seems unsolvable. It's a stupid question that born because IE doesn't respect the standard as its usual. But go to the problem. I create an anchor tag element,...
5
by: Meadock | last post by:
Here's an example of what i'm trying to do. At www.webpage.com/page1.php, there's a link that points to an anchor at www.webpage.com/page2.php. The syntax is: <a href="page2.php#anchor">Link</a>...
5
by: Kalpana Durairaj | last post by:
I want to insert my image within search result anchor(say google search results). <a href="http://www.codeproject.com">Code Project <!-- Google search result link--> <img src="myimage.png"...
10
by: bgold12 | last post by:
Hey, I know of two ways to place a link on an HTML page; (1) use the anchor element, and (2) use javascript to respond to an event (such as onclick) and set the location. I recently started...
8
by: azjudd | last post by:
Thank you in advance for your help on this one. I'm using named anchor tags on a FAQ page with questions listed at the top and answers below; a standard jump-to feature. However, anytime an anchor...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.