I want to display two images (download and view) on top of another set of images. Here is the HTML code:
<div class="row">
<div class="col-md-3 col-sm-4 col-xs-6 backgrounddownload backgroundview">
<a href="{site_url}scents/baobab/pearls/black-pearls"><img class="img-responsive" src="123.png"></a>
</div>
<div class="col-md-3 col-sm-4 col-xs-6 backgrounddownload backgroundview">
<a href="{site_url}scents/baobab/pearls/black-pearls"><img class="img-responsive" src="123.png"></a>
</div>
<div class="col-md-3 col-sm-4 col-xs-6 backgrounddownload backgroundview">
<a href="{site_url}scents/baobab/pearls/black-pearls"><img class="img-responsive" src="123.png"></a>
</div>
<div class="col-md-3 col-sm-4 col-xs-6 backgrounddownload backgroundview">
<a href="{site_url}scents/baobab/pearls/black-pearls"><img class="img-responsive" src="123.png"></a>
</div>
Below is the CSS being applied:
.backgrounddownload:after
{
content: '';
position: absolute;
width: 30px;
height: 30px;
top: 5px;
left: 5px;
background-image: url(download.png);
}
.backgroundview:after
{
content: '';
position: absolute;
width: 30px;
height: 30px;
top: 50px;
left: 35px;
background-image: url(view.png);
}
The issue I am facing is that the second image, specifically dowload.png, is not loading properly. When I inspect in Chrome, the .backgroundview:after element appears to be disabled. It seems like having two :after elements might be causing this problem. Any suggestions on how to resolve this?