Suddenly many of my css"code" was red underlined in Visual Studio Code
It worked just some minutes before then I closed vscode to do something else and when I reopened vscode suddenly many red errors popped up. I havent found an answer in the web so I thought best would be here
here is a photo of how the error looks for better understanding
2
Answers
Line 8 looks like you have some accidental ‘text’ there.
Does deleting that line fix the problem?
The error is in
Line 8
. Invalid css syntaxtext
. Did you mean to add something liketext-decoration: none;
.Either correct it, or remove that line and you’re ready to go!