Reputation: 1173
In Google Chrome, when I click on a linked image, the browser adds a blue outline around the image (please see the picture). How can I remove the outline? Tried this, no luck...
a img {
outline:none;
color:transparent;
}
Upvotes: 0
Views: 1065
Reputation: 10285
Lets try this method. check the DEMO.
a:focus{border: none; outline:none !important; }
Upvotes: 1
Reputation: 5391
Add this to your CSS:
a:active{
user-select: none;
-o-user-select:none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
}
Another option would be(probably the best one) not using img tag. Create a div instead and use CSS and use the image as that divs background-image.
Upvotes: 1