tonic
tonic

Reputation: 453

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!

Upvotes: 0

Views: 335

Answers (1)

Rab
Rab

Reputation: 35572

set width option as

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

Upvotes: 2

Related Questions