user2478101
user2478101

Reputation: 161

Backgrounds not appearing in firefox

I've not come across this problem before and can't seem to find a solution searching around. The problem is when I place a background using the following example the image will just not appear.

As you can see on chrome and the search bar should look like that, but on firefox its just a white box.

chrome example

background: url(../images/facebook.png) 95 20 no-repeat;

It works absolutely fine in I.E and chrome just not firefox, is this something to do with the position integers or something else.

Thanks

Danny

Upvotes: 0

Views: 52

Answers (1)

Martin Wedvich
Martin Wedvich

Reputation: 2266

CSS doesn't have default units, so Firefox doesn't understand that you mean pixels. The other browsers just take a guess and help you out. Change it to:

background: url(../images/facebook.png) 95px 20px no-repeat;

and it should be fine.

Upvotes: 1

Related Questions