'Is there a way to have a element stay as is after it is clicked on

Currently, I have the a tag in CSS with the active modifier, and all of the styling works but if the user stops clicking on the button, the styling goes back to normal. I've tried to use the ::active modifier but I can't seem to get it to work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source