How do I get my #img-alfa
image responsive?
I already tried background-size:100% auto;
and if I delete the width
and height
of the background-image
it totally disappears.
.img-responsive {
width: 100%;
vertical-align: middle;
}
#img-alfa {
top: -60px;
left: 68px;
height: 200px;
width: 150px;
position: absolute;
background: url("../img/alfazwartwitsmall2.png") no-repeat;
}
#img-alfa:hover {
top: -60px;
left: 68px;
height: 200px;
width: 150px;
position: absolute;
background: url("../img/alfakleursmall2.png") no-repeat;
}
<div class="col-xs-6 col-sm-3 placeholder">
<img class="img-responsive"
src="img/background_white.jpg">
<span class="circle_inner">
<a href="#"><div style="border-radius: 0em;" class="img-responsive" id="img-alfa" ></div></a>
</span>
</div>
Thanks!