background-image: url

liunx

Guest
Hi

I'm having a hard time getting this to work.

The file is located in a folder called images and the file name of the file is header_02.gif


background-image: url("/images/header_02.gif");

am I missing something to make this workYou don't need that slash before images I don't think. You can also assign it to just the background property.

background: url("images/picture.jpg");

CFHYou don't need to use the quotes in the parenthesis either, so this should work:

background-image: url(images/header_02.gif);

I just find it easier to not 'quote' the image's url path when it is already enclosed in a ()Is the web site based at the root of the host? I.e. it's not in a subdir. Can you retrieve that image with <!-- w --><a class="postlink" href="http://www.myname.com/images/picture.jpg">www.myname.com/images/picture.jpg</a><!-- w -->?
 
Back
Top