or /css/style.css in the children templates the css is not being picked up by the html page.
I am from a Drupal (ahem!) background and usally on localhost I can set a $basepath global and then set my alias in MAMP or change my host file to give me a more pleasant url, like testsite.localhost.com.
If you view the source of the pages, what is it saying the links to the CSS are? Are they stylesheet links correct, or are they linking to an incorrect URL?
Umbraco should pick up it's base path automatically, but to use ~/ in a stylesheet or JS element in the head, I think you need to add runat="server" to your page's head tag, so it looks like:
<head runat="server"> [title, css and js links etc here] </head>
setting base path or root path
Hi,
I am having an issue with my stylesheets.
Using
~/css/style.css in master
or /css/style.css in the children templates the css is not being picked up by the html page.
I am from a Drupal (ahem!) background and usally on localhost I can set a $basepath global and then set my alias in MAMP or change my host file to give me a more pleasant url, like testsite.localhost.com.
My current umbraco installation is setup on the the root folder so the site resolves to http://localhost and my page is on http://localhost/home.aspx.the css is on http://localhost/css/style.css and I can see my styles in the browser.
Any help would be appreciated.
Hiya,
If you view the source of the pages, what is it saying the links to the CSS are? Are they stylesheet links correct, or are they linking to an incorrect URL?
Umbraco should pick up it's base path automatically, but to use ~/ in a stylesheet or JS element in the head, I think you need to add runat="server" to your page's head tag, so it looks like:
<head runat="server">
[title, css and js links etc here]
</head>
is working on a reply...