• Hi all,

    I’m working on a frontpage news highlight and I’ve ran into some trouble.

    Basically the main image has more height than width, so I need to scale images to fit, but I wan’t to keep the aspect ratio.

    The size is 600px height by 550px width. I want any image that it placed there (Normally smaller than 600px height) to scale up to 600px height, BUT it also needs to scale the width to keep the aspect ratio of the original image.

    So basically if I have an image of say size 400px width by 500px height. I need to scale it up to 600px height whilst scaling the width up to keep the aspect ratio.

    Any help?

  • The topic ‘Scale image keeping aspect ratio – with min-height’ is closed to new replies.