CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
Other Discussions
[Solved] @import url not working?
Rugg
Permalink to comment
#
October 2011
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");
chrisburton
Permalink to comment
#
October 2011
bad file path?
Rugg
Permalink to comment
#
October 2011
The Path is correct…but the reset seems to break my grid when implemented using
@import
…not in the
<head>
tags though.
chrisburton
Permalink to comment
#
October 2011
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.
Rugg
Permalink to comment
#
October 2011
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
chrisburton
Permalink to comment
#
October 2011
ahh okay
Add a Comment
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?
Try this
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.