Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Dashed border in IE

Posted on 2000-03-06
7
459 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery Sticky Menu 24 36
Can't get container centered 4 24
How to combine and minify CSS and JS files 5 17
Html form and modal / img src -problem 3 30
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

856 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