user2042007
user2042007

Reputation: 45

button image is not working

I have an image attached to my code that is not shown in the IE:

#upload_button{
background-image:url(images/upload.gif);
width:215px;
height:61px;
background-repeat:no-repeat;
border:none;
}

Upvotes: 0

Views: 58

Answers (2)

Kingk
Kingk

Reputation: 1021

Below code is perfectly working in IE 6/7/8.

#upload_button{
background-image:url(http://www.gravatar.com/avatar/41d7639adf8a1916fab202db8cb16273?s=32&d=identicon&r=PG);
width:215px;
height:61px;
background-repeat:no-repeat;
border:none;

}

  <input type="button" value="button" id="upload_button" />

Upvotes: 0

The CSS property "background-image" is not supported by IE7 and IE8.

You'll need to replace it with

"background:transparent url();"

Upvotes: 1

Related Questions