If I resized the window and then updated the slider and the images inside resized to fit the width of the browser, however, I need this to happen automatically when the window is resized ... how can this be done?
http://subzerostudio.com/Clients/perkinreveller/test.html
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.cycle.all.latest.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.slideshow').cycle({ timeout: 400, fx: 'scrollHorz', next: '#next', prev: '#prev', }); }); </script> </head> <body> <style> body { margin:0; padding:0; height:100%; width:100%; position:absolute; } #slideshow-wrapper { width:100%; min-width:600px; } .slideshow { width:100%; } .slideshow div, .slideshow div img { width:100% !important; min-width:100%; height:auto; } </style> <div class="slideshow"> <div> <img src="images/img1.jpg" alt="" /> </div> <div> <img src="images/img1.jpg" alt="" /> </div> <div> <img src="images/img1.jpg" alt="" /> </div> </div> </body> </html>
source share