So I am looking for a way to introduce some new CSS whenever an element has been clicked, and then have that stay afterwards. It's really the last part that I can't get to work.
Here's my code so far:
HTML
<body>
<p>Click me</p>
</body>
CSS
#elmt:active{
background-color: lightgreen;
}
So I want the background color to stay light green from whenever you click the #elmt
the first time, and not go back to the default color when you release the mouse.
Is this even possible?