I am trying to scale '.slick-slide img' by height because the images vary in width. Scaling them by width would result in inconsistent proportions. However, when I apply a dimension to the height property for '.slick-slide img', the images do not scale. Why does this method fail, while using a width property successfully scales the images?
Check out my code on https://jsfiddle.net/mbj7ckrs/8/
.slick-slide img {
display: block;
margin-left: auto;
margin-right auto;
padding: 0;
}