1. LINK is a
HTML
tag and not an ASPX tag, and
runat
attribute is defined only in the case of ASPX tags.
2.You should use relative paths, and they are relatives to the wen application root folder from IIS (or to web application project folder in Visual Studio), and should be like in the example below:
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
In this example the
Styles
is a folder created directly in the web application root and it contains the CSSS file named:
Site.css
.
3.If you have your CSS file inside multiple sub-folders with 4 levels you have to indicate the path like below (but changing the name of the folders and CSS file for your case):
<link href="~/Folder1/Folder2/Folder3/Folder4/MyFile.css" rel="stylesheet" type="text/css" />