Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jan 02, 2013 @ 22:49
    Carlos
    0

    CSS and @import in Umbraco

    Is there anything specail you have to do in Umbraco for the @import to work in a CSS sheet?  Does not seem to be working if I do something like

    @import url("myOtherSheet.css");

    The CSS sheets are all in the same folder, so that should work, right?  or am I missing something in Umbraco that needs to be set to use @import in the CSS sheet.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jan 02, 2013 @ 23:34
    Tom Fulton
    0

    Hi Carlos,

    There shouldn't be anything umbraco-specific at play here, as CSS are just flat files.

    You might try using the full path, ie: @import url("/css/myOtherSheet.css")

    -Tom

  • Carlos 338 posts 472 karma points
    Jan 02, 2013 @ 23:45
    Carlos
    0

    Yeh, sorry I just read the rules for using @import.  Has to be used first and can't be used in a style sheet after any rules.  Just going to get rid of this.

     

Please Sign in or register to post replies

Write your reply to:

Draft