I have a unordered list as a thumbnail gallery, now when a user clicks on a thumbnail, I want it to have a border color of #000. Until the user clicks a new thumbnail I want it to stay black, is this possible through css?

Thank you