N
N
Nwton2018-01-27 11:52:28
css
Nwton, 2018-01-27 11:52:28

How to get a file in a directory one level higher?

On the server it should work, but on the computer it doesn't work: What am I doing wrong?
background: url(../file.png);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ink, 2018-01-27
@Nwton

what is "campukter"?
about the hierarchy:
we have such a structure
css + js + img + index.html , inside each folder there are files style.css app.js + in the img folder there are many pictures
in css, we turn like this
../img/img name
if the structure is style.css img folder js folder and index.html then url will be
img/image name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question