R
R
Roman Tuzov2019-11-22 09:36:05
Network administration
Roman Tuzov, 2019-11-22 09:36:05

Why do problems with styles occur when transferring a site to a hosting?

For many times there are problems with styles when transferring to hosting. For some reason they are simply not installed, although the file is still the same. Transferring only the style file did not help, transferred the entire site over a new one, still the same problem when there is no such problem on the local machine. Below are screenshots from the server and from the local machine ( SERVER: HandyHost )
Screenshots when transferring to the SERVER:
5dd7815d1d16f873749423.jpeg5dd78162d9fcd025251532.jpeg
And screenshots from the LOCAL machine:
5dd781ac5bbfc234190918.jpeg5dd781b50e505208149204.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)

Most often, the problem is related to incorrect paths to stylesheet files. If the paths were absolute, for example "/home/www/site/style.css", then you can replace them with relative ones.
The browser console will help determine the exact cause (in most browsers, it is opened by pressing the F12 key). After opening the console, you will need to refresh the page and see where the CSS elements are loaded from.
If it is possible to provide a link to the site, then we can be more precise (the site is currently unavailable at emerald-label.ru).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question