I have an image element that I want to change on click.
<img id="btnLeft">
This works:
#btnLeft:hover {
width:70px;
height:74px;
}
But what I need is:
#btnLeft:onclick {
width:70px;
height:74px;
}
But, it doesn’t work, obviously. Is it possible at all to have onclick
behavior in CSS (i.e. without using JavaScript)?