scalingscaling is an extremely lightweight (2.4k) jQuery plugin which scales images and dom elements to the dimensions of other images/elements on the page, or to any ratio or size.
... [More]
FeaturesSupports a number of scaling types: Scale Up Scale Down Scale up to a Minimum Scale down to a Maximum Smart scaling (auto-detects direction) Raw scaling (scales by an exact ratio) Open Source so you can help to improve it/change it for your own needs Scaling Examples jQuery(function(){
// Scale all images down to 10%
jQuery('img').scale({mode: SCALE_DOWN, target: '10%'});
// Scale element to no larger than 800x600
jQuery('#element').scale({mode: SCALE_MAX, target: [800,600]});
// Scale all matching elements to the current ratio of the provided element
jQuery('.someclass').scale({mode: SCALE_SMART, target: $('#someelement')});
}); [Less]