The question is: Where is your html file? Obviously not in the root folder, but probably in another sub folder. Try this

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

This navigates one level up and then into the css folder.

Answer from Johannes on Stack Overflow
🌐
Reddit
reddit.com › r/css › css is not working in vs code- help ( i am linking it correctly)
r/css on Reddit: CSS is not working in Vs code- HELP ( I am Linking it correctly)
October 26, 2020 -

I tried using bootstrap in my code for the first time and then after that my previous css work would not display. Now even though I’ve cut out the bootstrap and even tried making another simple bellow world page just to check , simple css like color won’t work. I’ve tried internal and inline Internal seems to be working for a complicated homepage but doesn’t for a simple hello world

EDIT- here’s my code And
This is it without bootstrap

🌐
Reddit
reddit.com › r/programminghelp › code language not supported or defined css visual studio code error
r/programminghelp on Reddit: Code language not supported or defined CSS Visual Studio Code Error
August 10, 2021 -

I was following a youtube tutorial on how to make a website with html and css! The html part was going great and then I went and created a style.css file and wrote some code in it when I tried to update it so it syncs with the website it gave me a error called" Code language not supported or defined." my code is very simple infact here is the code I wrote

.nav-wrapper {display: flex;justify-content: space-between;}

I currently have no idea why this issue is here and I'd like to fix it since my style.css isn't syncing with my website.

Edit: Thanks for the help but the solution is: <link rel="stylesheet" type="text/css" href="styles.css" />

🌐
GitHub
github.com › microsoft › vscode › issues › 155409
CSS not linking with HTML · Issue #155409 · microsoft/vscode
July 16, 2022 - Issue Type: Performance Issue Can you please tell me why my external style.css file is not linking to my HTML file? I have a folder called css and a file within my css folder called style.css. In the 'head' section I have a link which st...
Author   Glenda9031
🌐
Reddit
reddit.com › r/vscode › css doesn’t work
r/vscode on Reddit: CSS doesn’t work
January 8, 2024 -

Just started to learn code like 3 months ago and i don’t know why my vscode turn my CSS into Batch script automatically, it’s been 2 days i’ve searching the solution but i can’t currently work normally and i don’t care about Batch script, I have a project to complete in the next 4 months, save me.

🌐
Sololearn
sololearn.com › en › Discuss › 2965224 › help-i-need-to-link-my-css-and-html-documents-in-vs-code
Help I need to link my css and html documents in vs code | Sololearn: Learn to code for FREE!
What is the name of your external css file, if it is cssfile then in the head tag add <link rel="stylesheet" href="cssfile.css" > If the css file and html files are in the same directory then maybe the problem is that you havent added the extension ...
Find elsewhere
🌐
Reddit
reddit.com › r/vscode › html preview extension not showing css
r/vscode on Reddit: HTML Preview Extension not showing CSS
January 21, 2021 -

Whenever I open a html file in VS Code and open a preview using this extension, it opens a preview but doesn't show CSS or Javascript. It worked yesterday, so I don't know what the issue is.

🌐
Reddit
reddit.com › r/vscode › scss stopped working in vs code
r/vscode on Reddit: SCSS stopped working in VS Code
August 3, 2019 -

I’m building a website on VS Code consisting of HTML and SCSS code. When I open the website on Google Chrome, using the Live Server extension for VS Code or from the file on my computer, it should show all the changes I made to HTML and SCSS. However, only HTML changes show up in the browser. Any changes made to SCSS don’t show up. This problem started about two weeks ago. Before then, all changes to SCSS were showing up without issue.

I’ve tried opening the project with Live Server and from my file on my computer, a hard refresh on Google Chrome, reinstalling the Live Server extension on VS Code, and updating VS Code. None of these steps solved the problem.

Any help would be greatly appreciated.

🌐
Reddit
reddit.com › r/vscode › vs code = js and css files don't work in chrome?
r/vscode on Reddit: VS code = JS and CSS files don't work in Chrome?
May 28, 2019 -

Hello everyone,

I downloaded VSCode for the first time two days ago and was pimped to get started on this awesome tool. But I have an issue: whenever I tie a CSS file or a JS file into the project, the browser does not recognise it and it is not run.

I have tried both FF (newest version) and Chrome (newest version), but the error persists.

As I am quite a raw beginner at web development (less than two months experience), I have also checked the code by rewriting it in Atom on my other machine and running it there. There it works.

Now I am wondering what I might be doing wrong. Can anybody help me with this issue?

Thanks in advance

GroundbreakingSpell

🌐
Codecademy Forums
discuss.codecademy.com › web development › front-end
# style.css isn’t showing up like this in Open Editors/ VSCodes - Front-End - Codecademy Forums
July 2, 2023 - I am trying to open a new file. I have already created my html file, now css. The problem is the hashtag isn’t popping up to represent a css file. It only shows the document icon. I’ve googled but can’t seem to find anyw…
🌐
Reddit
reddit.com › r/learnprogramming › issues running html and css code simultaneously in visual studio editor.
r/learnprogramming on Reddit: Issues running HTML and CSS code simultaneously in Visual Studio Editor.
August 26, 2021 -

(I am trying to build a multi-page website for shits and giggles)

This question probably has a very simple answer.

I started coding a few hours ago, I have figured out how to code ( very rudimentary ofc) HTML, and CSS... the two codes work fine together in a codepen... but I can not figure out how to get it to work in "Microsoft's visual studio code" (VSC)

I was learning on code pen but want to continue on a more substantial editor... furthermore, I have had luck, not perfect, implementing CSS code directly into the HTML, but I would rather have separate files so I can have a single CSS dictate the laws of style.

I was very excited (to show where I am at knowledge-wise) when I got my first HTML single text code to open up in a chrome tab.

SO when I run the HTML and CSS code in parallel with each other on Codepen... it works swimmingly... it only loads the HTML content and not my CSS code when on VSC

any help would be greatly appreciated

🌐
Reddit
reddit.com › r/vscode › intellisense for css not working
r/vscode on Reddit: Intellisense for CSS not working
January 30, 2023 -

Anyone ever had Intellisense for CSS stop working? It was working fine last week and now it stopped. Its working fine with HTML & JS files but the auto-complete & class-predict for CSS is gone.

I have uninstalled/re-installed the extension and nothing. I've checked for VSCode updates and its all up-to-date. I have restarted everything, and nope.

Its annoying having to type it all by hand haha

Giving it a shot here as I've searched the entire web and have not been able to figure it out. Any insight is appreciated!

🌐
Visual Studio Code
code.visualstudio.com › docs › languages › css
CSS, SCSS and Less
November 3, 2021 - There is jump to definition for @import and url() links in CSS, SCSS and Less. You can extend VS Code's CSS support through a declarative custom data format.
🌐
Code with Mosh
forum.codewithmosh.com › html/css
VS Code extensions not working - HTML/CSS - Code with Mosh Forum
October 5, 2022 - Hey there, I’m starting part 3 on HTML/CSS course and I’m running into trouble with the extensions required for the course. CSS Peak and HTML CSS Support not running on my VScode. Any ideas to help out? I appreciate …
🌐
Reddit
reddit.com › r/learnprogramming › why isn't css being applied to html when i run the code? (visual studio code)
r/learnprogramming on Reddit: Why isn't CSS being applied to HTML when I run the code? (Visual Studio Code)
April 26, 2022 -

I am preparing to complete one of the HTML/CSS certification projects on Free Code Camp.

I was following along with a YouTube video where someone did it and copying it into Visual Studio Code for practice. When I tried to run it, I could only get the original HTML page without the CSS changes. Any idea why this might be occurring and how I can fix it?