I am trying to determine the smallest image (height) in a row of images.
Then I am setting the images container to the smallest image.
So basically i am doing this as a responsive solution keeping the all the images in a row at the same height using the images container height and overflow hidden.
Here is a script i found online and i was trying to play with it yet it seems that it does not work.
Can someone take a look?
var allImages = $('.images');
var imageSmallest = allImages;
if ($(this).height() < $(imageSmallest).height())
imageSmallest = $(this);
var imageSmallestHeight = imageSmallest.height();
$('.images-container').css("height" , imageSmallestHeight);