Css Selector :active Not Working On Child Element Click In Ie8
I have the following HTML structure:
Solution 1:
You could use a background image instead of a real image.
html:
<div id="ctr__Wrapper" class="wrapper">
<div id="ctr" class="control clickable">
</div>
</div>
css:
.control
{
border: 1px solid #000;
background-color: #666;
height: 40+height-of-logopx;
background-image:url(logo.png); background-repeat:no-repeat;
background-position:20px20px;
}
.control:active
{
background-color: #bbb;
}
Solution 2:
because < ie9 don't support :active on anything other than anchor elements. here's your fiddle, that should work in ie8 http://jsfiddle.net/jalbertbowdenii/DNMPd/12/
Post a Comment for "Css Selector :active Not Working On Child Element Click In Ie8"