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
Hi guys,
Bit of down time here so I thought I would tinker with 5.1. Got the template working, but can't seem to reference the stylesheet at all, here's my template:
@inherits RenderViewPage @using System.Web.Mvc.Html; @using Umbraco.Cms.Web; @{ Layout = ""; } <title>@DynamicModel.PageTitle</title> <link rel="stylesheet" type="text/css" href="../css/Site.css"/> @Html.Partial("PageTitle")
I've tried /css/Site.css, css/Site.css, Stylesheet/Site.css, ~/css/Site.css to no avail.
Unfortunately the documentation for 5.1 is a little lacking so I'm reaching out to you guys!
Thanks.
Hi Darryl,
Not sure if 5.1 is the same, but remember in 5.01 that the stylesheets created in the UI are reachable from /Content/Styles/ so inyour case:
<link rel="stylesheet" href="/Content/Styles/Site.css">
/Chriztian
Talk about over complicating it for myself... maybe I should have just checked the folder structure. D'oh!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
CSS & Umbraco 5.1
Hi guys,
Bit of down time here so I thought I would tinker with 5.1. Got the template working, but can't seem to reference the stylesheet at all, here's my template:
I've tried /css/Site.css, css/Site.css, Stylesheet/Site.css, ~/css/Site.css to no avail.
Unfortunately the documentation for 5.1 is a little lacking so I'm reaching out to you guys!
Thanks.
Hi Darryl,
Not sure if 5.1 is the same, but remember in 5.01 that the stylesheets created in the UI are reachable from /Content/Styles/ so inyour case:
/Chriztian
Talk about over complicating it for myself... maybe I should have just checked the folder structure. D'oh!
is working on a reply...