Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a new install of 4.5.2 using .net 3.5 on IIS 6
My master page head looks like this:
<head id="head" runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> <asp:placeholder runat="server"> <umbraco:Item runat="server" field="pageName" /> - <umbraco:Item runat="server" field="siteName" recursive="true" /> </asp:placeholder> </title> <link rel="stylesheet" type="/text/css" href="~/css/site.css" /> <link rel="stylesheet" type="/text/css" href="~/css/color.css" /> <!--Place to put page specific styles--> <asp:ContentPlaceHolder ID='childStyle1' runat="server"></asp:ContentPlaceHolder>
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script> <script type="text/javascript" src='~/scripts/curvycorners.js'></script> <script type="text/javascript" src='~/scripts/document.js'></script> <!--Place to put page specific scripts--> <asp:ContentPlaceHolder ID='childScript1' runat="server"></asp:ContentPlaceHolder> </head>
Firebug gives the message: Failed to load source for: http://srv/crimumbraco/css/site.css
If I change the code to:
<style type='text/css'>
@include "css/site.css"
</style>
Then everything works fine. The problem with that is that child pages do not see the style because of path depth.
I'm new with Umbraco and have no idea how to chase this one down. Thanks for any help.
Jon
Try removing the tilde I don't think its needed : <link rel="stylesheet" type="/text/css" href="/css/site.css" />
Thanks, but that doesn't help. Then the Firefox error is: Failed to load source for: http://srv/css/site.css.
In other words, it pops up to the root website.
Found it. /text/css should be text/css - don't know how that extra slash got in there.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 4.5.2 Does not apply style sheet
I have a new install of 4.5.2 using .net 3.5 on IIS 6
My master page head looks like this:
Firebug gives the message: Failed to load source for: http://srv/crimumbraco/css/site.css
If I change the code to:
<style type='text/css'>
@include "css/site.css"
</style>
Then everything works fine. The problem with that is that child pages do not see the style because of path depth.
I'm new with Umbraco and have no idea how to chase this one down. Thanks for any help.
Jon
Try removing the tilde I don't think its needed : <link rel="stylesheet" type="/text/css" href="/css/site.css" />
Thanks, but that doesn't help. Then the Firefox error is: Failed to load source for: http://srv/css/site.css.
In other words, it pops up to the root website.
Found it. /text/css should be text/css - don't know how that extra slash got in there.
is working on a reply...