Grow your CSS skills. Land your dream job.

@import url not working?

  • # October 6, 2011 at 6:56 am

    Hello all,

    I have including a reset.css at the top of my styles.css using the @import method. However, it does not seem to be working for some reason. Any ideas?

    @import url("reset.css");
    # October 6, 2011 at 7:33 am

    bad file path?

    # October 6, 2011 at 8:10 am

    The Path is correct…but the reset seems to break my grid when implemented using @import…not in the

    tags though.

    # October 6, 2011 at 8:24 am

    Are you using a grid system or something (960.gs)? Why not just add it in the head section?

    Try this

    @import "reset.css";

    Generally, I would advise against this at it just adds another http request but I’m sure the file size wouldn’t necessarily make a significant difference.

    # October 6, 2011 at 8:25 am

    I actually figured it out…I had my linked css files below my linked js files in the head. There was a conflict obviously. Thanks for you help

    # October 6, 2011 at 8:27 am

    ahh okay

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".