Say I have: <script type="text/javascript"> $(function() { $('.slideshow').cycle(); }); </script>
<div class="slideshow"> <div> <img src="test.jpg" /> <p>My caption</p> </div> <div> <img src="test2.jpg" /> <p>My caption</p> </div> </div> I'd like for the container to resize to the largest child size, but it doesn't look like in Safari/Chrome it can do this. It works in Firefox, but only after a refresh of the page. I'm guessing it's to do with the fact that the images aren't the direct child of the container div? Is it possible for this to work?