image being non-uniformly scaled in IE

Discussion in 'JavaScript' started by badgering, Jan 17, 2007.

  1. #1
    Hi, i created some JS that creates an IMG tag and sets the class attribute to a particular style.

    Then i noticed that it didnt work in IE. So a quick little change got it working.

    Now, the style sets the width of the IMG tag to 100px. In IE this is non-uniformly scaling the image! What is wrong with that browser! Anyhow has anyone seen this before? Do you know why this is happening and how to fix it?

    Thanks
     
    badgering, Jan 17, 2007 IP
  2. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    hi bagering - are you specifying the height as well???
     
    datropics, Jan 21, 2007 IP