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
Joshua Young
886 Pointsmore-styles.css not applying to web page
I used @import to add the more-styles.css to my style.css and it is not applying to my webpage.
<link rel="stylesheet" type="text/css" href="css/style.css">
@import 'css/more-styles.css';
1 Answer
Gavin Ralston
28,770 PointsKeep in mind once you move the import statement inside your style.css file, you don't need to provide a path to the imported stylesheet, because they're already located in the css directory.
So right now it's looking at your /css/style.css file, and looking for /css/css/more-styles.css which doesn't exist.
Just drop the '/css' from your import statement and it'll work fine.
Joshua Young
886 PointsJoshua Young
886 PointsYES!! Thank you!