Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: incrediBILL

Message Too Old, No Replies

Anchor links not working in Firefox

in particular those with images

   
9:54 pm on Jun 30, 2009 (gmt 0)

5+ Year Member



Hello,

I do hope someone might be able to help me. I thought it was just my computer having a funny turn, but I've checked it on another machine and it appears to be a problem.

I have uploaded my new website over the last few days. It works fine, across all browsers, for the most part.

The problem that I am now faced with is that the anchor links that I have on my pages are not actually working. They do not click, and do not link to the page they are supposed to. This is only a problem in Firefox.

Here is an example of the code that it doesn't work with:

<a href="pho1a.php"><img src="images/010.jpg" width=279px height=210px border=0 alt="text"></a>

Oddly, it is also doing the same thing around my text links too, so it is not just a thing with the images.

It is probably something really obvious.

I hope you are able to help.

Thanks in advance.

10:09 pm on Jun 30, 2009 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The markup was invalid. Try:

<a href="pho1a.php"><img src="images/010.jpg" width=[b]"279"[/b] height=[b]"210"[/b] border=[b]"0"[/b] alt="text"></a>

It's a very good idea to run your code through a validator before publishing it. You can use the on-line validator at w3c.org, or download any one of a number of free ones to run on your workstation.

Jim

11:27 am on Jul 1, 2009 (gmt 0)

5+ Year Member



Thanks Jim.

I've been through it all correcting things like that. The validator says it's all correct, but now it still isn't working.

On closer inspection, each page appears to allow me one link in the main body of text which can be clicked. The rest are just there but not clickable.

Any other suggestions? I've rewritten the links to check I've not made mistakes, and they're still not working!

12:27 pm on Jul 1, 2009 (gmt 0)

5+ Year Member



Problem solved. It was in my z-index. Just a bit of a tweak and it is all sorted.

Thanks!