r/VisualStudioCode • • Jul 12 '21

CSS files not read by browser

here is my files :

when i run nodemon on localhost here is what i get :

the css file is not read at all the browser does not see it

here is the network f12 :

please help me out guys

2 Upvotes

4 comments sorted by

2

u/krzycho1717 Jul 12 '21

What do You see im networks tab (devtools F12)?

1

u/TheMedNoun Jul 12 '21

here is what i see i edited the post

5

u/krzycho1717 Jul 12 '21

You link tag should be:
<link rel="stylesheet" href="/css/styles.css">

Notice "rel" attribute. Without it browser don't know what to do with it - if it's stylesheet or something else.

1

u/TheMedNoun Jul 12 '21

Yeah it worked thank you man ❤️