What's wrong with this css?
.img-responsive{
width: 100%;
height: 100%;
display:block;
}
.hovereffect {
width: 100%;
height: 100%;
float: left;
overflow: hidden;
position: relative;
text-align: center;
cursor: default;
padding-bottom: 2px;
padding-top: 10px;
}
HTML
<div className="hovereffect">
<img className="img-responsive" src={imgdir + item.img} alt={item.name}/>
<div className="overlay">
<h2>{item.name}</h2>
<p>
<b>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</b>
</p>
<p>
<a href="#">VIEW DEMO</a>
</p>
</div>
</div>
I need the image to be really responsive and it is not, for example as I will show below if I put a smaller image than the blue one, (blue is the one that works well and has a size of 1100 x 620) so let's say it's bigger than the ones.