Constrain images without distorting the aspect ratio

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • connieschurr
    New Member
    • Aug 2010
    • 2

    Constrain images without distorting the aspect ratio

    How do I constrain images within a designated size and shape without distorting the aspect ratio.

    Connie
  • azrar
    New Member
    • Nov 2008
    • 11

    #2
    That isn't an ASP question, it's an HTML question.

    Constrain only one dimension (width or height) and the other will automatically adjust itself to honor the aspect ratio.

    Comment

    • connieschurr
      New Member
      • Aug 2010
      • 2

      #3
      Thank you, that seems logical but it is not working. the image is stretching to fit the box.

      Connie

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        azrar's answer is correct, show us your code and we will try to help and maybe even explain why his solution didn't work.

        Jared

        Comment

        Working...