Results 1 to 2 of 2

Thread: Proportionally fitting images in Slideshow 2!

  1. #1
    Join Date
    Sep 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Proportionally fitting images in Slideshow 2!

    Hi

    I have set an overall size for the Slideshow 2! div in the CSS file as follows:

    .slideshow {
    height:250px;
    margin: 0 auto;
    width:420px;
    }

    I would then like all the images I use in the slideshow to fit within this area (i.e. 420 x 250). The images will all have a height of 250px, but different widths. For widths less than 420px I would like the image to be positioned centrally in the div as follows:



    for images wider than 420px I would like them to be positioned centrally as follows:



    I wonder if it's possible to achieve this with Slideshow 2! and if not, whether another script will help me achieve this?

    Thanks

    Nick

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,794
    Thanks
    2
    Thanked 419 Times in 413 Posts

    Default

    post a link to an example of your current slide show
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •