cycle, dealing with different image sizes
I'm having a few issues with the cycle plugin.
I have divs within each group of slides - there's a div for the image itself, then a navigation div that includes pagination and image captions. This all works, but when an image that's slightly smaller than the others (vertically) comes up, the div below the image bumps up to fill the gap. I want to avoid that.
I was hoping that the cycle plugin allowed for some resizing or at least maintaining the image div at a constant size since cycle is providing the image width/height numbers in the img tag. I tried the various options (containerResize, slideResize, fit) to no effect.
Any clever fixes for that?
Here's the script invocation and an abbreviated chunk of the html containing a set of slides:
- <script type="text/javascript">
- jQuery(window).load(function(){
- jQuery('.slider_3').cycle({
- next: '.next_3',
- prev: '.prev_3',
- contain: 'slidecont_3',
- fx: 'fade',
- speed: 500,
- timeout: 2000,
- delay: -1
- });
- });
- </script>
- <div class="design_slider_container slider_3">
- <div class="slidecont_3">
- <div class="design_image">
- <img width="560" height="393" src="foo.jpg" class="attachment-large" alt="alt text" />
- </div> <!-- end design_image -->
- <div class="design_image_nav">
- <div class="design_image_caption">
- the caption
- </div> <!-- end design_image_caption -->
- <div class="design_image_controls">
- <div class="design_image_prev prev_3"> </div> 1/10
- <div class="design_image_next next_3"> </div>
- </div> <!-- end design_image_controls -->
- </div> <!-- end design_image_nav -->
- </div> <!-- end slidecont_3 -->
- ... repeats for each image ...
- </div> <!-- end slider_3 -->