Visual Studio Code Live Server looks great, but CSS doesn't load in browser

I had the same problem. In my case, it was caused by a typo in the file path of my css. I have no idea why liver server ignored it and put the file correctly anyways.

The problem was that I had:

<link href="/style.css">

Instead of:

<link href="style.css">

So check your files paths. Maybe the problem is there.


Basic live server is configured to launch in the Root folder of the server.
So the relative path for the CSS file will change depending on the launch via live server or directly from the browser.
If I understood correctly. I encountered this error.