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

Kevin Gravett
Kevin Gravett
11,167 Points

Problem linking to stylesheet

Is there a video segment or instruction of any sort for making sure your files are set up right for linking your html to your stylesheet. I am working on the 'Smells like bakin' site and just can't seem to make grid,css or normalize.css link. I've already had some one look at my html code and it's exactly like the project index file. Anyone have suggestions on where I should look now?

Do you think you could post your code so we can have a look through it? If you use the markdown cheatsheet, you can format t like it would look in the text editor. This would help a lot in answering your question.

5 Answers

James Barnett
James Barnett
39,199 Points
  1. Download Project Files
  2. Unzip Project Files
  3. Read about how to organize your files
  4. Read about how file paths work
  5. Find the grid.css file in the directory you created when you unzipped the project files
  6. Move the grid.css file to your CSS directory like you learned about in step 3
  7. Link your the CSS file to your HTML using the <link> tag remembering what you learned about paths

"css/normalize.css" is pointed to normalize.css in a folder named "css". Are your .css files in folder called css?

Wayne Priestley
Wayne Priestley
19,579 Points

It will really depend on your folder structure, so unless we know more its going to be hard to help Kevin.

Kevin Gravett
Kevin Gravett
11,167 Points

Yeah, apologies for not going ahead and posting my code but I haven't had access to all my stuff until now. I just basically deleted everything and started with a clean slate as far as my folder structure, and now I believe it's working correctly. Thank you all for for jumping right in and helping me so quickly! James, just fyi, those links you posted about organizing files and file paths don't work. And I just can't remember them covering much of anything about moving the files into my directory. All I recall is them saying to go ahead and download the project files. I'll have to do some reviewing. for sure. Thanks, again!

James Barnett
James Barnett
39,199 Points

> James, just fyi, those links you posted about organizing files and file paths don't work

Thanks, fixed the links

Kevin Gravett
Kevin Gravett
11,167 Points

I'm getting ready to go take a look at them now. Thanks, again.