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.


  1. User Avatar
    Permalink to comment#

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

  2. User Avatar
    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
    Permalink to comment#

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

  4. User Avatar
    Permalink to comment#

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

  5. User Avatar
    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
      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
    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
    Permalink to comment#

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

Leave 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.