Jump to content

Hover issues with overlapping <a> .png's in Internet Explorer


pealo86

Recommended Posts

I've made a basic interactive CSS / jQuery map of the UK in which each country is highlight as you hover over it.

 

Here is a link to it:

http://concept.freshbeat.co.uk/jobsworkingfromhomedirectory-14102011/0-dev/test/

 

I have highlighted each country with a red border so that you can see the dimensions of each image.

 

Of course, it works fine in all browsers bar IE, although I'm a little surprised to see that it doesn't even work in IE9.

 

It seems as though IE just isn't reading the z-index properties properly. It's like you have to hover completely out of the map and then carefully hover over your country of choice, without touching any of the others.

 

One thing I've just stumbled across whilst testing it, I decided to add a background colour to each <a> so that I could see if they were stacked in the correct order in IE.

 

And now I've found that the hover's work perfectly in IE when a background colour is applied?!

 

See here:

http://concept.freshbeat.co.uk/jobsworkingfromhomedirectory-14102011/0-dev/

 

Even in IE7, the map works fine when background colours are applied. The problem might be due to the fact that I'm using transparent .png's?

 

Does anyone know of a workaround? As me slicing up the map and applying a separate background to each individual <a> tag isn't an idea solution, although it may be the only one!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.