• Background image in input button for IE7

    I don’t have to explain that it’s much better to use neat fancy images instead of regular html buttons. And sometimes designer succeeds himself and ads something really cool that you can’t simulate with CSS alone so background image for button should be set. On the other hand there is this stupid IE7 bug (afaik IE8 is ok) where you can’t see the background image for an input button if CSS border is set to “none”.

    So this will NOT work:
    <input type="button" name="button" value="Button" style="background-image:url(bg.png); border:none;" />

    And this WILL work to display background image [also] on IE7:
    <input type="button" name="button" value="Button" style="background-image:url(bg.png); border:0px;" />

    Tags: , , , ,

3 Comments


  1. ipad 3 says:

    Very interesting information!Perfect just what I was looking for!

  2. some genuinely interesting info , well written and loosely user pleasant.

  3. I am not very fantastic with English but I get hold this very leisurely to understand.

Trackbacks/Pingbacks

  1. Wordlis9
  2. Information about elektroninen tupakka
  3. เกมส์ทําอาหารยี่ปุ่น
  4. Learn Piano
  5. dynamics gp

Leave a comment