Let's keep this straightforward. I've got an image that uses the following CSS properties: .img-right { float: right; margin: 0px 0px 10px 20px; }
Below the image, there's a caption with these CSS styles: .img-right p { margin-top: 5px; padding-top: 5px; font-size: 11px; color: #858d93; }
I'm looking to have the width of the paragraph adjust based on the size of the image being used. Since images with that class vary in width, it seems using jQuery is the only option to achieve this. Can anyone help me make this work?
Thank you and Happy Holidays!