SyntaxFix
Write A Post
Hire A Developer
Questions
If you just want the button to have different styling while the mouse is pressed you can use the :active pseudo class.
:active
.button:active { }
If on the other hand you want the style to stay after clicking you will have to use javascript.