[thelist] Background image not working
aardvark
evolt at roselli.org
Sun Oct 30 13:40:53 CST 2005
On 30 Oct 2005 at 14:23, Trevor wrote:
[...]
> I have put the CSS code in a separate file (taken from the HTML file code) and
> put it in a file of its own. My background image doesnt work now. If I put
> the code back in line it does
any ideas ?
i'm gonna guess that your CSS file doesn't live in the same location
as the HTML page -- in a different directory perhaps?
the path to the image must be from the CSS file, not the HTML page
calling the CSS file...
so if your HTML file lives in a directory called foo, and the image
you want is bar.gif, you might have had the following:
../images/bar.gif
but if the CSS file lives in the root, this path won't work and
you'll need the following:
images/bar.gif
however, you should really consider using root-relative addresses so
it doesn't matter whether the CSS file (or other references to the
image) move around:
/images/bar.gif
finally, this is a best guess... without a sample oage, i am only
hitting the most likely scenario here... if this doesn't solve it,
you're on your own without a sample page to show...
More information about the thelist
mailing list