D
D
Denis2015-10-31 15:37:15
PHP
Denis, 2015-10-31 15:37:15

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;
}

, if I specified a relative path, as in a file, then the background would not be set.
How can I fix this bug in Denver?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question