Answer the question
In order to leave comments, you need to log in
Relative paths in Denwer?
Hello! The essence of the question is that describing, for example, the path to the image in the img tag, I can set the relative path to the image, and when I set the background in the style file, this no longer works and I have to set the absolute path. This all happens on the DENWER server. For example:
you can (and even need) to specify a relative path in a file <img src="images/content/some-img.png">
, but only an absolute path in styles
.some-class {
background: url("/images/content/some-img.png") no-repeat;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question