I have a fixed Div width / height that holds images as a background.
I want them to fit in a div without overflow - this is the ideal situation for
background-size: contain;
But if the image is smaller than the Div, it scales. I do not want it. What I'm looking for is something like max-width and max-height for the background image.
Here you can see a simple example (with random images) of my problem:
http://jsbin.com/uQevuna/1/edit
Unable to change the html code of the page.
source
share