Search code examples
jquerycyclejquery-cycle

jquery cycle: overriding the width?


I'm using jQuery Cycle, but it's automatically setting the width of the div on its own.

The div that is cycled has ID #slideshow, so I am currently having to modify the CSS

#slideshow {
  width: 100% !important;
}

Is there a way to accomplish this using the jQuery Cycle options rather than having to use !important.

Any tips would be much appreciated!


Solution

  • set width option as

    width: "100%"  // container width (if the 'fit' option is true, the slides will be set to this width as well)