Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Why are my pictures stretching? Re: Why are my pictures stretching?

#126561
Mottie
Member

Hi matt_sanford!

When I look at the `#slider` element, I see it is being effected by two files:

1. `anythingslider.css` sets the slider dimensions to 1080×720.
2. `theme-metallic.css` set the slider dimensions to 960×540 (overriding the anythingslider.css)

You don’t need both files to add a theme to AnythingSlider.

Also, because the default options are all being used, the `resizeContents` option is set as `true` and forces all images to resize to fit the slider dimensions. If you want to have images of different sizes, make sure to set each image width and height and change the `resizeContents` option to `false`.