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

HTML

CSS Reset Not Working

I have finished my HTML for the simple website, and I had a problem with the margin. I went to try to fix that, because it was in the HTML, and now the CSS Reset is not working. Is there something wrong with the files or HTML? If you know what is happening, please do help.

Here is a link to my code.

http://codepen.io/anon/pen/qHnsf

Thanks in Advance.

4 Answers

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Eddie Freedman,

It doesn't look like there's any CSS in that Pen. There are also no linked CSS files.

I just realized I made a mistake in my question. The real question is that when I put in the normalize.css code(which is not in the Pen at the moment), it does not remove the borders on the web page. So it is either something wrong with my html or the location of the files of normalize.css.

Nick Pettit
Nick Pettit
Treehouse Teacher

It's more than likely that the path to the file is incorrect. Triple check the file path to make sure it's formatted correctly and that your file is indeed in that location.

I checked to make sure, and both the grid.css and the normalize.css are in a file called css. I just added the link code to my HTML and normalize.css and it is still not working.

I checked to make sure, and both the grid.css and the normalize.css are in a file called css. I just added the link code to my HTML and normalize.css and it is still not working.

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

If you're having problems with file paths, it's probably better to zip up your project directory, upload the zip file, and post it to the forum. CodePen makes it difficult to resolve this particular type of issue.

Dropbox allows you to publicly host files, so I'd do that.

Could I just send the .zip to your teamtreehouse email? That would be easier.

Hi Eddie, it would be good practice to try the sharing with dropbox or something similar. That way someone in the community can help and you may get a faster response than relying solely on Treehouse staff.

For issues with file paths I usually suggest posting screen shots of the directory structure.

Hey Tom,

I am trying to get a link set up to dropbox, but I have only gotten the free version, so it will take some time to get the file up.

OK. I have finished getting the dropbox file set up, so here it is.

https://www.dropbox.com/s/3wxttmdfv1zhamg/index.html.zip

Thanks Eddie, I just downloaded the .zip but it seems to only contain your .html file and nothing else? The HTML code looks fine, it is expecting to find "normalize.css" and "grid.css" inside a folder called "css" in the same directory as the "index.html" file.

The free version of Dropbox should be just as quick as the paid one, I believe the only difference is the amount of space you get.

If you could either take a screen shot of your directory structure as James suggested or zip the whole folder (not just the .html file) then we could see exactly what's happening.

Eddie, we need to see the folder structure. The individual files one by one don't show that as we can't see how they are arranged on your computer.

This is how they should be arranged.

Folder 1: index.html, a folder called "css"

Folder 2 (called css): grid.css, normalize.css

Ok Tom, Thanks for the help.

I'm having the same issue and I am not understanding how I should fix the it.

I figured it out

Hey Erik,

If you don't mind, could you tell me what you did, that would be great.