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

Iftode Daniel
seal-mask
.a{fill-rule:evenodd;}techdegree
Iftode Daniel
Front End Web Development Techdegree Student 14,093 Points

Failed Automated Testing

i submitted the project for review and it fail's automated testing the reason is :

"There is an issue locating your styles.css file. Check that it has been added to GitHub correctly. If the styles.css file has been renamed or moved to another folder this test will not pass."

i checked and the css file is linked correctly and in the main folder along with the html file so i don't know what is the problem

2 Answers

Eric Gold
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Eric Gold
Front End Web Development Techdegree Graduate 27,401 Points

Iftode,

This is tough to answer without seeing the project. I would say to double check that the version of your project you committed to github is correct (in case you were checking the files on your computer).

Also, you mentioned that your stylesheet is in the same folder as your html file. In that case, make sure you are not using a path to a subfolder when linking to the stylesheet. In other words, the link to the stylesheet in your html doc should be something like href="styles.css" and not href="css/styles.css" (as many examples you might see would have it).

That's all I can suggest without seeing your project. If you would like to link to the repository I could check it out.

By the way, from my end I can see that you're a FEWD techdegree student, but it doesn't say what project you are working on.

EDIT: I found your repo on your Treehouse profile. It looks like in fact you do have your stylesheet in a subfolder (called css). So you will need to change the path in your link to match this. In other words, you do need "css/styles.css". This tells the system to look in the folder called css to find your stylesheet, "styles.css"

Iftode Daniel
seal-mask
.a{fill-rule:evenodd;}techdegree
Iftode Daniel
Front End Web Development Techdegree Student 14,093 Points

thx or the quick reply i found the issue , it was my fault i did not pay attention properly the teacher said the css file should be named "styles.css" and mine was named "style.css" :) note to self : pay more attention in the future. if u want to give an advice to a beginner like me u can find my work at www.iftodedaniel.com and the link to the github repository is in the footer of the page , the github icon will be there thx again