I recently added this code to my webpage:
image {
margin: 0 2px 0 0;
height: 100px;
width: auto !important;
overflow: hidden;
text-align: center;
}
The goal was to scale all images to a maximum height of 100px and have the browser adjust their height accordingly. However, I noticed that the images are only cropped to 100px in height with the remaining portion hidden.
Can someone please advise on how I can achieve the desired scaling effect? Thank you in advance!