Is the site deployed at the root of the domain? If the site is in
http://example.com/somefolder/
then the path /stylesheet/main.csswill be interpreted as
http:
but not
http://example.com/somefolder/stylesheet/main.css
As pointed out by @Kit, you can get around this by resolving the path to your application folder. I often did this in ASP.NET as follows:
<link rel="stylesheet" type="text/xss" href="<%= ResolveUrl("~/stylesheet/main.css") %>"/>
If this is not a problem, you will have to tell a little more.
harpo source
share