Here is the website I’m working on:
I can get the image not to stretch by removing height: 481px; but then I lose the caption and squares below the image and it moves around if the images are different heights. I’ve tried messing around with positioning, but I haven’t found a solution.
There are several ways you can solve this.
A cleaner solution, as @Sven pointed out, would be to use the tag
<div>instead of<img>and use the images asbackgroundfor the div.Or,
you can use the CCS clip property to crop all your images to the same size, while maintaining their original proportions:
(check this link for documentation on clip: http://www.w3schools.com/cssref/pr_pos_clip.asp)
The fastest solution for you at this point however (the one that needs less changes on your actual code) might be to use the absolute positioning, only, instead applying it to the div
.text-boxapply it to his parent.slider-cont-wrapper.:(change
top:andright:to measures that suit your layout)