Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS border appears on click [duplicate]

Tags:

html

css

border

LOGOUT

I have this simple logout button on the right (blue coloured) button and whenever I press the logout button, that border appears

I have tried the following CSS styles:

a:active
{
    border-style: none;
    border: 0px;
}

and these have been tried on all <a> tag possibilities like hover, active..

Any idea what might be the cause?

this is the Jsfiddle link

http://jsfiddle.net/v1x29f9h/

like image 314
DodoSombrero Avatar asked Sep 23 '14 21:09

DodoSombrero


1 Answers

It's not a border, it's the outline.

#logoutButton {
    outline: none;
}

Demo http://jsfiddle.net/v1x29f9h/1/

like image 57
Arbel Avatar answered Oct 11 '22 13:10

Arbel