Cycle Slideshow with different size images not adjusting to images
I believe I am following the Cycle demo, but the display is not adjusting to the different size images. Here is a
And this is setup:
- Slideshow with different size images
- CSS:
- /***** slider *****/
- .slider-wrapper {
- margin-top: 80px;
- padding:0px;
- overflow:hidden;
- }
- .slider {
- border:10px solid #fff;
- border-radius:6px;
- margin-left: auto;
- margin-right: auto;
- }
- .caption {
- font-size: 1.0em;
- color: #fff;
- text-align: center;
- font-weight:bold;
- color: #f6c02c;
- }
- JS:
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script type="text/javascript" src="http://malsup.github.com/chili-1.7.pack.js"></script>
- <script type="text/javascript" src="http://malsup.github.com/jquery.cycle.all.js"></script>
- <script type="text/javascript" src="http://malsup.github.com/jquery.easing.1.3.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.slider').cycle({
- fx: 'scrollHorz',
- timeout: 3000,
- after: function() {
- $('#caption').html(this.alt);
- }
- });
- });
- </script>
- HTML:
- <!-- Beginning of slides -->
- <div class="slider-wrapper">
- <div class="slider">
- <img src="images/5587_120512_b.jpg" width="399" height="600" alt="Smokey Bear"/>
- <img src="images/slide_8105.jpg" width="526" height="350" alt="Brids of Prey"/>
- <img src="images/slide_8115.jpg" width="526" height="350" alt="Otter"/>
- </div>
- <p class="caption" id="caption"></p>
- </div>
Suggestions would be greatly appreciated.
Todd