
Originally Posted by
rangana
Have you tried adding a rule for
img element in your CSS? Something along these lines:
Code:
img{
width:800px;
height:600px;
}
That won't scale them unless 800 x 600 is the aspect ratio of all the images, otherwise it will squish/blow them up them into those exact dimensions, along with all of the other images on the page. And the settings for Swiss Army are only for accommodating images that will already 'fit in the box'.
Now, using style may still work. If your images can all be scaled to within 'the box' by having just one dimension set, the browser generally will take care of the other (as long as the script doesn't interfere). Each slide show this script makes has a master division. Like for the first slide show on a page, 'master0' - so you could try a style like:
Code:
#master0 img {
width:800px;
}
Then if they all can 'fit in the box' like that, it should work out. You can even try (no good for IE 6 -, but a substitute can be found if it works well in other browsers):
Code:
#master0 img {
max-width:800px;
}
You should still also set the 'size of the box' as you are already doing in the script, otherwise it will use the actual dimensions of the first image it loads.
If you need more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks