M
M
Mak3542018-02-19 19:06:27
css
Mak354, 2018-02-19 19:06:27

How to set the path to an external file in a directory?

In general, this is the problem: I installed apachy2, I create an html folder in the site directory, the index.php file is in it, the css file is in the css folder, and so, in the index file I write the path to the css file, I write like this: ../css/main .css but it doesn't work for some reason, the file doesn't connect. I myself don’t like to create extra folders, but it doesn’t work differently, if I don’t put the index.php file in the html folder, the server stupidly doesn’t see it, damn it ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-02-19
@webinar

show the structure, according to your description it is not at all clear what is where
If I understood correctly, then instead of ../css/main.css there should be css/main.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question