DexJ
DexJ

Reputation: 1264

How to remove a link unwanted border ? when a tag link active

My problem is remove dotted border when I click on a tag link. After clicking its looks like following type.

img 1

I also tested in jsfiddle but on there this work perfect not unwanted dotted border draw when I enter image description here click on a tag link.

img 2

Upvotes: 0

Views: 105

Answers (2)

user3364215
user3364215

Reputation:

.classname a{ outline:none;}

or

a{ outline:none;}

Upvotes: 0

Jaykumar Patel
Jaykumar Patel

Reputation: 27614

In old browser versions, css properties inherit from parent properties.

Almost all old browser versions have this problem.

To fix this, add outline properties in your <a> tag and set value 0 none:

a {
   outline: 0 none;
}

Upvotes: 3

Related Questions