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
Eddie Freedman,
294 PointsCSS 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
Treehouse TeacherIt doesn't look like there's any CSS in that Pen. There are also no linked CSS files.
Nick Pettit
Treehouse TeacherIf 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.
Eddie Freedman,
294 PointsCould I just send the .zip to your teamtreehouse email? That would be easier.
Tom Bedford
15,645 PointsHi 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.
James Barnett
39,199 PointsFor issues with file paths I usually suggest posting screen shots of the directory structure.
Eddie Freedman,
294 PointsHey 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.
Eddie Freedman,
294 PointsOK. I have finished getting the dropbox file set up, so here it is.
Tom Bedford
15,645 PointsThanks 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 Freedman,
294 PointsTom Bedford
15,645 PointsEddie, 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
Eddie Freedman,
294 PointsOk Tom, Thanks for the help.
Erik Garcia
Front End Web Development Techdegree Student 6,489 PointsI'm having the same issue and I am not understanding how I should fix the it.
Erik Garcia
Front End Web Development Techdegree Student 6,489 PointsI figured it out
Eddie Freedman,
294 PointsHey Erik,
If you don't mind, could you tell me what you did, that would be great.
Eddie Freedman,
294 PointsEddie Freedman,
294 PointsI 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
Treehouse TeacherNick Pettit
Treehouse TeacherIt'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.
Eddie Freedman,
294 PointsEddie Freedman,
294 PointsI 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.
Eddie Freedman,
294 PointsEddie Freedman,
294 PointsI 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.