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
Post a Comment