-
Style Sheet Problems
I have recently upgraded an ASP.NET project (created in VB.NET 2003) to Visual Studio 2005.
In it, I am referencing a cascading style sheet (Styles.css).
In the design view, the formatting specified in my style sheet is applied. But when I build and debug by project, the style sheet is no longer applied. Why is this?
I have tried rebuilding my project, stopping and starting IIS but all to no avail...
:(
-
Re: Style Sheet Problems
In the source, (output), what is the URL to the CSS relative to your page?
-
Re: Style Sheet Problems
Code:
<link href="Styles.css" rel="stylesheet" type="text/css" />
It is in the same directory.
-
Re: Style Sheet Problems
This is extremely odd. Is there anything non-conventional that you are doing in the project? Can you paste the ASPX source as well as the output source?
-
Re: Style Sheet Problems
This might be related to the other thread from yesterday.
See if you have a solution option for random ports on your project (it makes URLS that look like http://localhost:XXXX/... where the :XXXX is a port number) and turn that option off.