I tried to see other answers, but didn't help. My background is dynamic, so the size of the images will change, so I need to keep the proportions so that the whole image is visible. here is my CSS:
.image_submit_div { border: 1px solid #ccc; display: inline-block; padding: 20px 50px; width: 55%; height: 320px; cursor: pointer; background: url('something.jpg'); margin: 0 0 25px;
}
HTML
<label for="id_image" class="image_submit_div">
At the moment, depending on the image, sometimes it is cropped. I want the image to be scaled down so that it can be seen completely. Any idea?
css
Zorgan
source share