8

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/

Devin
  • 7,690
  • 6
  • 39
  • 54
DodoSombrero
  • 767
  • 3
  • 15
  • 29
  • For accessibility reasons I wouldn't remove this. People without mice will not know which links/buttons they are on unless there is some sort of outline. – Leeish Sep 23 '14 at 21:20
  • This is mostly for my thesis website, it's not going to actually out to public. And if you press 'TAB' , around the words log out a border will still appear – DodoSombrero Sep 23 '14 at 21:26

2 Answers2

30

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

#logoutButton {
    outline: none;
}

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

Arbel
  • 30,599
  • 2
  • 28
  • 29
3

It is outline: none;. The border would follow the border-radius path.

Cohars
  • 3,822
  • 1
  • 29
  • 50