My website built with Bootstrap 3.3.5 contains images that I want to be responsive, so I assigned the .img-responsive class to them. However, they are not responsive in Firefox (when I resize the window to a smaller size, the image does not get smaller, so that scroll bars appear). In Internet Explorer, it works just fine. I haven't tried any other browser I read about the bug that can be fixed by adding "width: 100%;" but that doesn't fix the problem for me (the only thing it does is make the image bigger when I make the window smaller so that the column containing it is the only one in that row. It gets smaller again as I continue to make the window smaller, but when it's at the size I want it for larger screen, the scroll bars appear again. I tried adding "width: 100%;" inline to the html tag, and I tried adding it to my CSS. I also tried adding "display: block;" "max-width: 100%;" and "height: auto;" as well, but that didn't change anything. Adding !important didn't help either. I don't know what else to try!
Here's my code for the image (only for this column in the row):
<div class="col-sm-4 nopadding">
<a href="index.html"><img src="images/logo6.png" class="img-responsive logoplacement center-block" alt="Logo"></a>
</div>
And the CSS:
.logoplacement {
padding-bottom: 20px;
padding-top: 20px;
padding-left: 35px;
vertical-align: middle;
}
.logoplacement img {
display: block;
max-width: 100%;
width: 100%;
height: auto;
}
What can I do?
UPDATE:
The media query:
@media (max-width: 780px) {
.logoplacement img{
max-width:80% !important;
}
}