Why do I always get this squiggly error lines under my EXISTING files? It annoys me so much. If I put a / before the files, the error goes away, but it doesnt work in the page.
If the CSS file is in the same directory as the page then it should not be highlighted. You could try fully qualifying it with an absolute path using the ~ character which denotes the root project directory.
href="~/style.css"
or href="~/subdir/style.css"
etc.
Note that the special behaviour of the ~ character only works with elements which are parsed server-side, such as those within the head element or those with the runat="server" attribute.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.