Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How delete the border, which appears around a tag, when we click on it?

Tags:

css

When we click on a tag, the border is appear around it. In Mozilla that border has the color of a tag, so when i set the color of a tag same as the background color of content, the border disappears, but in IE that border always white, so i don't know how delete it.

Any ideas?

Thanks much

like image 321
Simon Avatar asked Sep 18 '10 14:09

Simon


People also ask

How do I remove an outline when clicked?

Just add a:visited { outline: none; } in your style file.

How do I hide a border in HTML?

We can specify the no border property using CSS border: none, border-width : 0, border : 0 properties.

How do I remove the border from an image tag?

Adding border="0" to your img tag prevents that picture from having a border around the image.


2 Answers

Remove outline.

a {
    outline: none;
}
like image 130
Topera Avatar answered Oct 19 '22 10:10

Topera


Don’t.

This makes your site inaccessible to keyboard users. That may not sound like a big deal, but many people with relatively minor disabilities are unable to use a mouse.

At the very least, replace it with something else to indicate focus.

like image 23
Daniel Cassidy Avatar answered Oct 19 '22 08:10

Daniel Cassidy