Solved

Dashed border in IE

Posted on 2000-03-06
7
446 Views
Last Modified: 2012-08-13
How do I remove the dashed border of an anchor tag in IE.

<a href="xyz"><img src="xyz"></a>

When clicking on the image, IE will make a dashed border around the image. NS doesn't do this.

Regards
0
Comment
Question by:KE
7 Comments
 
LVL 6

Expert Comment

by:andreif
ID: 2588553
Is it possible? I think, that no... I know only about solid border around image, which can be deleted using <img src=... border=0> attribute.
0
 
LVL 3

Author Comment

by:KE
ID: 2589163
I was thinking on some of the style properties. I hope it's possible - the reloading trick is kind of overkill...

Regards
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2590323
That border thing is one of my major dislikes of IE...  why did they ever put that "feature" in in the first place?

Sorry, I don't know of any way to get rid of it nicely...

-Josh
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Expert Comment

by:drom
ID: 2590847
Remove the focus from image is the only way, AFAIK. So it will require script work on onClick or onFocus (whatever you and DOM like more)

Regards, Dmitry

focus border disappears after mouse release:
<a onClick="blur();" href="xyz"><img src="xyz"></a>

focus border will not appear at all:
<a onFocus="blur();" href="xyz"><img src="xyz"></a>
0
 
LVL 3

Author Comment

by:KE
ID: 2591199
I've tryed your solution, but unfortunately it has some nasty sideeffects.

1. The browser window will loose it's focus and will be covered by all other opened applications.

2. It's also hard to get the browser to follow a link, since the focus is removed before it get's a chance continue (this actually stall's the link).

It seems that the blur() function only operates on Form controls and the window itself. Do you have another suggestion, than blur() ?

Regards
0
 
LVL 1

Accepted Solution

by:
drom earned 50 total points
ID: 2591308
sure, the only thing you need is make the focus out of your images: use

<a onClick="window.focus();" href="xyz"><img src="xyz"></a>

instead of blur(); ... but would you mind to say what IE/OS are you using? I can't repeat this problem you mentioned. Both of them :(
0
 
LVL 3

Author Comment

by:KE
ID: 2593899
That's it !

I'm using IE5 on NT4 SP5.

Regards
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now