Bachalo
Bachalo

Reputation: 7219

Disappearing background image in IE 7 only

Have a problem with my submit button image disappearing but only in IE7 and below. I've tried:

but NONE worked.

This is my form: http://www.bitstream.ca/contact.html

HTML:

<button id="submit" type="submit">Submit</button>

CSS :

#submit{
    background: url('imgs/submit.png') no-repeat top;
    cursor: pointer;
    width: 79px;
    height: 22px;
    border: 1px;
    text-indent: -9999px;
}

Upvotes: 1

Views: 1278

Answers (1)

LoveAndCoding
LoveAndCoding

Reputation: 7947

You're adding a width and height to an inline element. Inline elements are unable to have a width or height set on them, so if you set the element to display: block; and it should solve your problems.

Upvotes: 4

Related Questions