Reputation: 11
Background image is not showing in IE and works fine with other browsers.
My line of code in CSS:
background: url(../images/box.png)no-repeat;
Upvotes: 1
Views: 68
Reputation: 7380
Add a space between image src and no-repeat.
url(../images/box.png) no-repeat
Upvotes: 1
Reputation: 7801
You should review background's shorthand implementation:
background: (color) url(../images/box.png) no-repeat (position-x) (position-y);
^^^^^
there needs to be
a space here too
I'd recommend moving to individual declaration if you aren't going to specify everything in the shorthand form of background, i.e.:
background-image: url(../images/box.png);
background-repeat: no-repeat;
Upvotes: 0