I\'ve got a slideshow running in a container and need the height of the container to match the visible slide\'s height. Unfortunately the images are absolutely positioned and th
Instead of running before or after the slideshows callback, this scales the image as the window resizes. Perfect!
$(window).resize(function() { $('#main').css('height',$('img.slide:visible').height()); });