Currently, this is what I have:
https://i.sstatic.net/VOC2z.png
The display looks optimal with high-resolution landscape photos.
This is the HTML and CSS code in use:
<div class="upload-thumb ng-scope visible">
<span class="delete-media">
<span class="icon-bin">
</span>
</span>
<img src="">
</div>
.upload-thumb {
cursor: pointer;
overflow: hidden;
float: left;
width: 44%;
/* height: 72px; */
margin: 0 11px 10px 0;
position: relative;
}
.upload-thumb img {
width: 100%;
height: inherit;
}
If the fixed height is removed, here's how it appears:
https://i.sstatic.net/hhF4Q.png
The images are not scaled. How can I keep them unscaled yet contained within a fixed size container like in the initial setup? Although some parts of the image may be cropped, I am fine with that. Any suggestions on achieving this?