Any reason why when I run this code,
input[type=submit]:active { background-color: green; }
when I click the desired button it only flash
You also need to use the :focus selector.
:focus
This then adds the background color to the input as it is the focused element.
input[type=submit]:active, input[type=submit]:focus { background-color: green; }