I know this question was asked before but suggested solutions are not working in my case. I am using bootstrap and I am trying to change image url when link is active. Example:
HTML:
<a id="aClientInfo" href="#" class="list-group-item active text-center">
<img class="img-responsive imgClientInfo" src="../Images/Reports/Claims-Info-
Blue-New.png" />
<br />
Client Info
</a>
CSS:
#aClientInfo.active > .imgClientInfo
{
content:url("../Images/Reports/Claims-Info-Purple-New.png");
}
This solution is working perfectly on chrome browsers. But whenever I run it on IE or FireFox, the image won't change ... I have tried to implement before and after but then it won't work neither on chrome... I really can't understand how before and after can work here with active class... Any suggestions? I need a solution that could work also on safari as it is a responsive website. Thanks