css remove button border on click code example

Example 1: css get rid of button outline on click

button:hover, button:focus {
  outline: none;
}

Example 2: remove button default border css

button:focus { outline: none; }

Example 3: css remove link border on click

a:active, a:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

Example 4: how to remove outline on button

outline: none;

Example 5: html button remove border on click

.x-btn:focus, .button:focus, [type="submit"]:focus {
   outline: none;
}

Example 6: button remove border if click

<style>
input[type="button"]
{
    width:120px;
    height:60px;
    margin-left:35px;
    display:block;
    background-color:gray;
    color:white;
    border: none;
    outline:none;
}
</style>

Tags:

C Example