Maintain image heigth, but reduce width on resize
-
The webpage in question is https://arctrinity.com/
Underneath the slider there are four ‘images’, I duplicated the row just so you can get the point of what I want. The top row is what I would like it to look like. The image stays in the center and maintains the height on window resize, but reduces the width without distorting the image. I can achieve this with a background image (which is the top row) but don’t want to use a background image as I can’t make the entire div a clickable link in that case. I would like to use an actual image in each box so the whole image will be clickable but I can’t seem to figure out how to maintain the height without the image getting distorted on browser resize because of the width. I’ve been searching forever and thought I found some solutions but none of them seem to achieve what I want.
- The topic ‘Maintain image heigth, but reduce width on resize’ is closed to new replies.