Previous Message
Next Message

CSS: Background img

Sent by z e n on 13 April 2006 17:05


Hi there, I've got another stupid newbie question for you. The trick is to put picture into "div"
section, 

background-image: url(../img/header.jpg);  

and here is the question - It works OK (with current definition of url for image using two dots)
under IE6 and Opera 9 but when it comes to Mozilla FF 1.5 my image doesn't want to display. If I
change url in the following way:

background-image: url(./img/header.jpg);  

(notice one dot instead of two) the image is displaying in Mozilla but now it doesn't want to
display in Opera and IE. One way to solve the problem is to provide full url path:

background-image: url(http://www.mywebsite.com/img/header.jpg); 

But I'm asking if there is more elegant way of solving the problem so that the image would display
in Opera and IE and Mozilla.

Thanx in advice, I would really appreciate your help.


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: