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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -