I need to miss something completely obvious here, but can't find anything on the net to tell me otherwise.
I am trying to pull .png into a page using:
background:url(img/runner1.png) no-repeat;
I know the path is correct, because doing the same with jpg works:
background:url(img/header.jpg) no-repeat;
It seems to work in Safari, but not in Chrome or Firefox.
Did I miss something?
EDIT - I use:
#runner1{ background:url(img/runner1.png) no-repeat; float: left; border: 1px solid #FFF; width: 195px; height: 205px; }
for the following item:
<div id="runner1"></div>
The page runs only locally from my desktop (therefore, the server is not involved).
As mentioned earlier, paths are not a problem because jpg from the same directory works.
Firebug says:
runner1.png GET Success image/png index.html:201 0B 8ms
But I do not see the view or answer in Firebug.
Also direct access to the file returns the same result.
source share