Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Corey Lyons
Corey Lyons
24,684 Points

Need help with css reset and adding grid css!

I downloaded the correct files from project files and I entered the codes exactly and I did not see anything change. I think the file paths are correct. Here is my codes:

<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
  <link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">

File path is like this: Documents>css>normalize.css ,grid.css I wanna get this right before I move on!

7 Answers

Corey Lyons
Corey Lyons
24,684 Points

I figured it out! When I downloaded the files I went back and put in another .css. When I pulled up the files on Sublime Text 2 I discovered the file names were off. That's why the codes weren't working right. Thanks for helping me out Gareth! Much appreciated.

Corey Lyons
Corey Lyons
24,684 Points

normalize.css.css instead of normalize.css

Christopher Chapmond
Christopher Chapmond
1,281 Points

I just finished this project and the first thing I would check is to make sure your index.html is in the root folder, in your example it would be the documents folder.

Corey Lyons
Corey Lyons
24,684 Points

yes, my index.html file is in the documents folder.

Gareth Redfern
Gareth Redfern
36,217 Points

Hi Corey, I take it your index.html that has these included is also in Documents? First I would put all the files in a folder and call that your project name to keep things organised. The path you have in your example should work fine though.

Corey Lyons
Corey Lyons
24,684 Points

yes the index.html file is under documents. I unzipped the files and copied the css folder with the files needed (normalize.css, grid.css) so that code should work. Documents>css>normalize.css, grid.css. I typed those exact codes as above and when I did the CSS reset, the page stayed exactly the same (didn't even change slightly, like in the video tutorial). The grid.css code did nothing either. I'm still trying to figure this out.

Gareth Redfern
Gareth Redfern
36,217 Points

Could you drop the files into dropbox and share, that way I could take a proper look?

Corey Lyons
Corey Lyons
24,684 Points

Hmm trying to drop them in the box isn't working so I will type out the file structure: Documents-(root folder)

css>normalize.css, grid.css, img,.DS_Store are all located in the css file img index Hope that can help

Gareth Redfern
Gareth Redfern
36,217 Points

Great news, glad you figured it out Corey.