ZemsLemaories
New Member
How can I change the background of a href (with image) when is selected (clicked)?I have the next HTML code: \[code\]<li class="barButton" id="addHome"> <a href="http://stackoverflow.com/questions/14590753/#"> <img class="imgBar" id="animate1" src="http://stackoverflow.com/questions/14590753/img/interface.png" > </a></li>\[/code\]and I've tried the next CSS code:\[code\].imgBar:active { background-color: #000;}\[/code\]But the background of image-button only is changed when is clicked.