I have an image inside of a container that scale correctly depending on the size on the screen. The issue I am having is that the container will not scale with it height wise.
I would want the image to fill the container completely and keep in the same aspect ratio of the image.
This is what I have got so far:
padding: 5px 5px;
<img class="center-img" src="images/image.jpg">
I cleaned your css and changed your img into a div with red border so we can see it. I made the container with green color to see it too.
The point here was to give your img a
relative position so the div around it will adapt.