Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-30-2013, 11:20 AM #1
- Join Date
- Sep 2012
- Thanked 0 Times in 0 Posts
Resize image keeping apsect ratio with min-height
Having some trouble resizing an image. I need the image to have a min-height of 600px, but once it's been resized to 600px height, I need to width to resize too, keeping the aspect ratio of the original image.
12-30-2013, 06:56 PM #2
Set min-width to the value required to maintain the aspect ratio. generally the way to maintain aspect ration is to set the width as the height is dynamic and will set correctly as long as it is not restricted with and explicit declaration.