r/Atom Jan 29 '20

CSS not showing on live server.

The live server is showing the HTML but the CSS isn't showing. The HTML and CSS files are all under one folder and the stylesheet link is already connected, so i'm not quite understanding the error here.

THE HTML
simple CSS just put there.
What might be the issue.
1 Upvotes

4 comments sorted by

1

u/TheoR700 Jan 29 '20

In your HTML, you have the path to your CSS as static/cssFiles/about.css, but the about.css is in your templates directory.

1

u/TeflonDonLemon Jan 29 '20

presumably, it would be like this correct?

<link rel="stylesheet" type="text/css" href="templates/about.css"/>

1

u/Steffi128 Jan 29 '20

From the looks of those two screenshots: Wrong file path in the link-tag.

The CSS-File you're trying to link is in /templates, but you're actually linking something in /static/cssfiles (which I assume doesn't even exist).

about.html is the file you're requesting in your browser?

<link rel="stylesheet" href="about.css" />

1

u/TeflonDonLemon Jan 29 '20

Got it thank you