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 trialUnsubscribed User
2,115 PointsNormalize.css and @import
I am trying to import my main.css, in this video Guil calls it style.css, into normalize.css; however, I do not see a change in the website? Why?
You can see the normalize.css code here: https://necolas.github.io/normalize.css/3.0.2/normalize.css
on line 1 of normalize.css I have
@import "main.css"; (main.css and normalize.css are in the same folder.)
and in my html header I have <!DOCTYPE html> <html> <head> <title>New York</title> <link rel="stylesheet" href="css/normalize.css"> </head>
1 Answer
Riku S.
11,322 PointsYour syntax looks correct, but if you're using normalize.css, you should always make sure that it's included first before any other css files. Personally I wouldn't use import inside normalize.css at all, keep that file as it is so you can easily update it if needed. Better idea would be to add your main.css in your html file.