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
asyncr0ne SEO
1,554 PointsIs it an error in my code ?
I'm actually following the "how to make a website" courses, and I have a problem at this step :
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
If I code in "main.css" file, nothing change. So I think that I have an error in my code on my "index.html" page.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Florian D • Webdesigner</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<a href="index.html">
<h1>Florian</h1>
<h2>Web • designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<ul>
<a href="img/deforestation.jpg">
<li><img src="img/deforestation.jpg" alt=""></li>
<p>Deforestation</p>
</a>
<a href="img/eolienne.jpg">
<li><img src="img/eolienne.jpg" alt=""></li>
<p>Eolienne</p>
</a>
<a href="img/ordinateur.jpg">
<li><img src="img/ordinateur.jpg" alt=""></li>
<p>Ordinateur</p>
</a>
<a href="img/pluie.jpg">
<li><img src="img/pluie.jpg" alt=""></li>
<p>Pluie</p>
</a>
<a href="img/recyclage.jpg">
<li><img src="img/recyclage.jpg" alt=""></li>
<p>Recyclage</p>
</a>
<a href="img/startup.jpg">
<li><img src="img/startup.jpg" alt=""></li>
<p>Startup</p>
</a>
</ul>
</section>
<footer>
<a href="https://www.facebook.com/fdarroman"><img src="img/facebook-wrap.png" alt="facebook link"></a>
<p>©2016 • Florian</p>
</footer>
</body>
</html>
Can someone help me ?
Thank You :)
2 Answers
asyncr0ne SEO
1,554 PointsHi Michael !
Thank you for your answer.
I always save before refresh. I never had any problems before, and my code looks correct. It's why I don't understand..
This is my snapshot :
Michael Afanasiev
Courses Plus Student 15,597 PointsHi Florain,
Your error is your file structure, you should try and avoid naming things with capitals. Check where your css is located and what is the folder name. :) Hope this helps.
asyncr0ne SEO
1,554 PointsMichael, you're the best ! Thank you very much ! Nooby mistake ! ahah
Michael Afanasiev
Courses Plus Student 15,597 PointsYou're welcome, don't worry about it, similar mistakes happened to me too. :D Happy coding!
Michael Afanasiev
Courses Plus Student 15,597 PointsMichael Afanasiev
Courses Plus Student 15,597 PointsHi Florian,
Do you save your file before refreshing the web page? I can't seem to find any error in your css linking, if you could provide a snapshot of your workspace, that could help us a lot.
To give us a snapshot of your project, do the following: