Not-Terrible Image Resizing in IE

img {
       -ms-interpolation-mode: bicubic;
}

If you scale down an image with width and/or height attributes, it's going to look terrible in IE unless you use this.

Comments

  1. User Avatar
    panchicore
    Permalink to comment#

    Thanks! My thumbnails has improved 100% with this hack! :D

  2. User Avatar
    LuK
    Permalink to comment#

    for which versions of IE is this helpful…I couldn’t really tell if this has an effect in IE6/7

  3. User Avatar
    Dyllon
    Permalink to comment#

    wow, it looks better then it does in firefox when i size them really small. thanks!

  4. User Avatar
    MaT
    Permalink to comment#

    I love using this in my reset stylesheet! mmmmmm :D

  5. User Avatar
    Wal
    Permalink to comment#

    I do not recommend the use of Internet Explorer because it is very stupid

    I would recommend the use of the browser is always the best FireFox

    • User Avatar
      MaxArt
      Permalink to comment#

      Dude, Firefox is so, like, last decade. Jurassic.
      Chrome is the only way to go. Everybody uses Chrome.

      JK. It’s just that this isn’t the place for browser fighting.
      The main problem for web developers is that there are a bunch of outdated browsers around, which are mainly Intenter Explorer 6-7-8, but I have to mention Firefox 3.x too…

  6. User Avatar
    Jack
    Permalink to comment#

    Just a heads up to everyone else trying to get this to work (it wasn’t for me). Your image cannot have transparency. Save it out as a solid background GIF/PNG and you’re good to go.

  7. User Avatar
    Grabcu
    Permalink to comment#

    This css hack doesn’t work at all. IE11 or Edge, no matta. its 2017. Come on, Microsoft get your $#!+ together.

Submit a Comment

Posting Code

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag