Last active
January 6, 2018 06:54
-
-
Save rickhernandezio/f3b23a1cdbb13fae1956ad0a186e17e8 to your computer and use it in GitHub Desktop.
How to vertically align an image with CSS?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('.product-features-img').height($('.product-features').height()); | |
$('.product-features-img img').addClass('vertical-align'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment