P
P
Pavel2021-01-18 12:51:46
PHP
Pavel, 2021-01-18 12:51:46

Chrome blocking css connection when working with open server?

Good afternoon.
Moved from Denver to openserver. The css file in chrome stopped connecting (it works fine in denver). And writes an error. It works fine in Explorer though.
6005582188503902870692.png
The path was checked, the existence of the file along the path was checked, the data from the css file shows. If you do styles directly in the file, it also works. But the css file does not want to connect.
I tried to connect via http//:touristbasa/localhost/views/layouts/style.css' but I probably wrote something wrong - I didn’t find the file
600559bb4abff681416410.png
I say right away that I’m just learning, so I’ll be glad for any help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yuriev, 2021-01-18
@Pasha9k

I tried to connect via http//:touristbasa/localhost/views/layouts/style.css' but I probably wrote something wrong - I didn't find the file

in your case you need to connect like this
<link href="http://touristbasa/views/layouts/style.css" type="text/css" rel="stylesheet" />

and even better so
<link href="/views/layouts/style.css" type="text/css" rel="stylesheet" />

P
Pavel, 2021-01-18
@Pasha9k

if so: touristbasa/views/layouts/style.css , then it does not block the css file, but the file does not find
60055d1fbe981121496046.png
the same result in the second option,
60055dfcaa531848848605.png
for some reason it interprets the file as txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question