:active giver en anden farver når du trykker på elementet
:active
//CSS .bluebox { background-color: blue; width: 60px; height: 80px; } .bluebox:active { background-color: green; }
<div class="bluebox"> Tryk på mig! </div>