Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 07, 2011 @ 13:33
    Fuji Kusaka
    0

    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??

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Jun 07, 2011 @ 13:42
    Peter Dijksterhuis
    1

    Hi,

    if you simply use "/css/style.css" then every page (no matter what level) will pickup your stylesheet.

    Peter

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 07, 2011 @ 14:09
    Fuji Kusaka
    0

    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.

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Jun 07, 2011 @ 14:15
    Tom Fulton
    0

    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

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 07, 2011 @ 14:17
    Fuji Kusaka
    0

    Yes am using virtual directory...let me try

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 07, 2011 @ 14:33
    Fuji Kusaka
    0

    Its definetly a virtual directory issue !!!...... (~/css/global.css does not work)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies