Image Auto Resize / Scaling with JQUERY

Posted by spotlightsnap on Stack Overflow See other posts from Stack Overflow or by spotlightsnap
Published on 2010-03-10T01:37:21Z Indexed on 2010/05/08 10:28 UTC
Read the original article Hit count: 188

Filed under:
|

Hello,

I have a div with width 600 px. I want to pull the images dynamically. Images size are varies. What I want to do is, if the image size is more than 600 px, we will resize the image to 600 px to fit into the div. But if the image is not more than 600px, we will leave as original image width.

How can i achieve that by using jquery ? Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about image-scaling