Is there a way on accessing a stylesheet instead of adding ("../../css/style.css") and avoiding multiple templates?
I have sub pages and both are using the same template but somehow the sub pages are on another level and i really dont want to create loads and loads of templates. One main under which there will be multiple sub where only the contentPlaceHolder will change.
I changed <link href="../css/global.css" rel="stylesheet" type="text/css" /> to <link href="/css/global.css" rel="stylesheet" type="text/css" /> but still not working.
That should work just fine, I do that all the time. The slash just tells it to start from the root of your site.
Are you maybe running Umbraco in a virtual directory? If so you
might need to do /yourdirectory/css/global.css instead (or
~/css/global.css might work).
accessing Stylesheet
Is there a way on accessing a stylesheet instead of adding ("../../css/style.css") and avoiding multiple templates?
I have sub pages and both are using the same template but somehow the sub pages are on another level and i really dont want to create loads and loads of templates. One main under which there will be multiple sub where only the contentPlaceHolder will change.
Any suggestion??
Hi,
if you simply use "/css/style.css" then every page (no matter what level) will pickup your stylesheet.
Peter
Peter,
I changed <link href="../css/global.css" rel="stylesheet" type="text/css" /> to <link href="/css/global.css" rel="stylesheet" type="text/css" /> but still not working.
Hi,
That should work just fine, I do that all the time. The slash just tells it to start from the root of your site.
Are you maybe running Umbraco in a virtual directory? If so you might need to do /yourdirectory/css/global.css instead (or ~/css/global.css might work).
-Tom
Yes am using virtual directory...let me try
Its definetly a virtual directory issue !!!...... (~/css/global.css does not work)
is working on a reply...