Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

@import not working correctly

noob here!

I'm not sure why my @import tag is not working correctly. Is there any reason for this? I've imported all the files and folders and put them in the right places. It seems to think @import doesn't exist.

EDIT: I don't know how to import my code on this forum. Maybe someone could help me with that as well lol.

First of all, @import statements must go at the top of CSS files before any other rules. You can use relative paths in the url if the files you're trying to import are not in the same directory. To paste in your code, take a look at the "Markdown Cheatsheet" link just below the answer box. To create the big code box, place three backticks on a line, your code on the next lines, then three more backticks on a line below that.

Thanks Christopher! I'll take a look at my code and try again.