Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darryl Godden 145 posts 197 karma points
    May 09, 2012 @ 16:36
    Darryl Godden
    0

    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:

    @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.

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    May 09, 2012 @ 17:30
    Chriztian Steinmeier
    1

    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

  • Darryl Godden 145 posts 197 karma points
    May 09, 2012 @ 17:56
    Darryl Godden
    0

    Talk about over complicating it for myself... maybe I should have just checked the folder structure. D'oh!

Please Sign in or register to post replies

Write your reply to:

Draft