remove focus from button code example

Example 1: remove button highlight on click

.btn:focus {
  outline: none;
  box-shadow: none;
}

Example 2: remove border on button focus

button:focus {outline:0;}

Example 3: how to fix the button outline onclick

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

Example 4: how to remove the focus effect from a button when clicked

how to remove the focus effect from a button when clicked

Tags:

Css Example