I've looked at many other threads concerning this question but none of the solutions seem to be working. For example, max-width: 100% and height: auto does not make the images responsive. They look great on IE, FF and Chrome on desktop. The problem is they won't scale for mobile devices, including chrome for Andriod 10 and Safari running iOS 13. The extent of my knowledge runs out here so I need help.
<div class="image">
<img src="images/last-supper.png" alt="The Last Supper by Leonardo da Vinci">
</div>
.image {
padding-top: 2.5em;
width: 100%;
max-width: 600px;
height: auto;
}
This is the code before I tried width:100% height:auto
and max-width: 600px
and also I tried removing shrink-to-fit=no
from the <meta>
I tried both on my external CSS stylesheet and inline HTML, and none of it worked. Could y'all please help walk me through this and figure out what's wrong?
GitHub repo for full code: https://github.com/ErichMB/the-christian-gallery
Gh-pages deployment: https://erichmb.github.io/the-christian-gallery/