html - CSS-Statement to change the color of a button DURING click -


i want change color of button during click. didn't find solution, thats why i'm asking. don't want change color of button after clicked. want change color during click (so color button has when press button). @ moment button gets blue while pressing it. (safari)

thanks!

<input type="button" value="mybutton"> 

you might need add :active in css element

input[type='button']:active{    background-color:red;  }
<input type="button" value="mybutton"/>


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -