I am using an Image map with a circular area. The problem is I get an unwanted border around the area in IE7. This border doesn't appear in FF and Chrome and also in IE8/IE9.
I tried adding border="0" to the image, css properties for the anchors i.e
a{
border:none !important;
outline:none !important;
}
but didn't work.
I also tried adding the IE fix onfocus="blur();" in the tag. This solved the issue in IE but then FF got the border now. Searched a lot and came through this fix which said it will fix the issue for FF when IE fix is used.
#parent_div *:active, #parent_div *:focus { overflow-x:hidden; outline:none; }
But sadly even this didn't work. I am using FF 9.0.1.
Any help will be greatly appreciated. Thanks in advance.
Well found a way to solve this issue...which is probably not a good way to go for. By using js browser detection we can apply the IE fix as follows which will not cause problems to other browsers(FF in my case)
Well please, if anyone finds a better solution then do post here. Thanks.
and this is the fix for ie versions
try this hope it helps !!!
You could use conditional comments (more info here) + jQuery.
HTML:
jQuery:
This is the solution: