jQuery Cycle plugin setting incorrect width

jQuery Cycle plugin setting incorrect width

Hi, I am using the wonderful Cycle plugin and until now no problems. Here is what I have:

  1. <script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <scripttype="text/javascript src="http://photography.txpbuilders.com/js/jquery.cycle.all.min.js"></script>
And the initializing code:

  1. <!-- carousel --> <script type="text/javascript"> $(document).ready(function(){ $('#carousel').cycle({ fx: 'fade', speed: 'fast', timeout: 0, next: '#next', prev: '#prev' }); }); </script>

When the page is first loaded, the container div #carousel is set to:

  1. <div id="carousel" class="clearfix" style="position: relative; ">
Which is fine, and all works well. However on page reload the style is changed and this breaks my CSS:

  1. <div id="carousel" class="clearfix" style="position: relative; width: 640px; height: 562px; ">
I am not sure my CSS is wrong - but here it is anyway. Hope someone can help with this - thanks!

  1. #carousel {
  2. width: 960px;
  3. background: transparent;
  4. }

  5. #carousel .slide {
  6. width: 960px;
  7. padding: 0;
  8. }

  9. #carousel .slide {
  10. margin: 0;
  11. }

  12. #carousel .slide img {
  13. float: left;
  14. width: 640px;
  15. height: 480px;
  16. padding: 0;
  17. }

  18. #carousel .details {
  19. float: right;
  20. width: 200px;
  21. padding: 20px;
  22. background: #eee;
  23. opacity: 0.5;
  24. }