Closed MrBunny956 closed 11 years ago
No, the #slider
is supposed to match the id of your slider, then you can adjust the width and height to match the size you desire.
I was wondering this too. It makes it inconvenient when having to upgrade AnythingSlider. These styles should be set as defaults in the plugin via jQuery and optionally overridden via the options parameter.
Originally, you were able to set the width and height of the slider in the plugin options (it's still there to keep the plugin backwards compatible). But, I thought it would be better to leave the the css settings for the css.
You don't have to use the #slider
definition in the anythingslider.css file. It's really there more as an example than anything. And as you can see in pretty much all of the jsFiddle demos, the slider width and height are set within the demo, overriding the size set in the file.
Personally, I don't see a big deal in upgrading AnythingSlider.
Is the #slider suppose to have hard coded width and height?