How do you resize an image while maintaining the aspect ratio?

Total Post:51

Points:359

HTML5 
 1997  View(s)
Ratings:
Rate this:
Hi,

How do you resize an image while maintaining the aspect ratio?

Thanks in advance. 
  1. Re: How do you resize an image while maintaining the aspect ratio?

    Hi Hugh, 


    Set either the width or height to auto and explicitly set the opposite dimension with a fixed length. If width is auto, height has an explicit length , or if height is auto, with has an explicit length.

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.