CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

AnythingSlider.css #470

Closed MrBunny956 closed 11 years ago

MrBunny956 commented 11 years ago

Is the #slider suppose to have hard coded width and height?

Mottie commented 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.

basememara commented 11 years ago

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.

Mottie commented 11 years ago

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.