Can I use Jquery to automatically find and set the width and height of a variety of images?
- by Ryan
I am using the Masonry Plugin and for it to work correctly with images, you need to set the width and height within the image tag. All the image's heights will vary, but the width will be set at 200px.
Is there a way for Jquery to detect the height of each image and set it's height? That way I don't have to go set the height of every single image.
Does this make sense?
Hope someone can help! I am new to Jquery.