How to change the blue color of the frame already pressed input type = 'button' to some other?
3 answers
It seems that you have it: focus on this button. Try to give her an outline. Well, or change it for the same: focus.
- Thanks, it helped. - Nikita
|
Try to set the class active when you click on the button and give it a frame what you need ...! It depends on what you specifically need, what would it always be like this until the next press or just to focus ...?
- When I use focus, a frame appears around the focus. Solved my problem with
outline: none. - Nikita
|
You need to set pseudo-classes for it :focus :active and apply outline: none; .
button { width: 100px; height: 100px; } button:focus, button:active { outline: none; } <button>Button</button> |
