Folder-Tree:
example.com/css/style.css
example.com/index.html
HTML Head:
<!DOCTYPE html>
<html lang="de-DE">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="./css/style.css">
If I click "View Page Source" I can click on the css link and I see my file.
I can even type in the adress bar the url "example.com/css/style.css" and I see my file.
I open Firefox Developer Inspect and it gives a Success 200 Code for loading the css-file.
I delete the browser-cache, no change.
I download the html-file and put it into a folder with the css-file. Open it with Visual Studio Code Live Server and it looks right, the css is loading. The same code.
Why does it not work online?
EDIT:
I just saw that in the Firefox Inspector, the html head is greyed out. Both online and offline but offline seems no problem.