squiggly file not found

PROKA

Junior Contributor
Joined
Sep 3, 2003
Messages
249
Location
Bucharest
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 doesn't work in the page.
 

Attachments

Absolute paths with ~

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.

Good luck :)
 
Back
Top