Relative Link to External Style Sheet
I have been attempting to link an external stylesheet to my .aspx pages using the following syntax:
<LINK rel="stylesheet" type="text/css" href="Style/Styles.css">
The style sheet (styles.css) in the Style directory that I have created within the project. I believe that I should be able to reference this from anywhere within the project by setting href as follows:
href="/style/Styles.css"
where the first slash indicates that the Style directory is one level below the root directory.
I find that when I do this that my pages don't find the style sheet. I want to be able to reference the stylesheet relative to the root of the web site so that if I move pages around (up or down a directory), the style sheet links will still work.
How do I reference the stylesheet relative to the root of the website??
Any help on this would be greatly appreciated.
|