A
A
Anastasia Ivanova2019-01-12 17:58:28
css
Anastasia Ivanova, 2019-01-12 17:58:28

Why is Open server not loading the css file?

Hello, I decided to practice layout, but the problem is that open server loads an html page without a css file.
Thanks

Answer the question

In order to leave comments, you need to log in

5 answer(s)
J
Johnny Smith, 2019-01-12
@niceniceice

In the header of the HTML document, insert the line: and place the stylesheet next to the HTML document in the same folder

A
A person from Kazakhstan, 2019-01-12
@LenovoId

The open server does not load anything Upload
to the open server You and your mistake are on the way to the css file

L
lukoie, 2019-01-12
@lukoie

Is there a slash in the path to the css file or not?
There is also a common mistake in a typo when they started writing syy, then ss was replaced, and "s" remained Russian.

Z
ZardoZAntony, 2019-04-26
@ZardoZAntony

It was also such a problem. By default, OpenServer did not want to load js and css (a copy of the site on Drupal 7). The whole day was steamed with Apache configs. I scored and just changed in the OpenServer settings to Apache + nginx and everything worked without any settings.
PS: my paths for including js and css start with a slash (eg "/css/main.css"). Tried to remove these slashes did not help.

I
ilqa_pro, 2020-08-24
@ilqa_pro

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question