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 trialRazvan Vasile Man
289 PointsHaving trouble with the .css file coding. Everything I type in the css file it doesn't apply when launching the page
I tried everything from the issues raised bellow . If I try adding a <style> item in my index.html file it works fine but when I insert code in the .css file it does nothing. I will insert my code bellow. Thank you!!!
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>xxxxxxx | Structural Engineer</title> <link rel="stylesheet" hreh="css/normalize.css"> <link rel="stylesheet" hreh="css/main.css"> </head> <body> <header> <a href="index.html"> <h1>Paula Groza</h1> <h2>Structural Engineer</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> <li> <a href="img/case-11.jpg"> <img src="img/case-11.jpg" alt=""> <p>Case Selimbar 1.</p> </a> </li> <li> <a href="img/case-12.jpg"> <img src="img/case-12.jpg" alt=""> <p>Case Selimbar 2.</p> </a> </li> <li> <a href="img/case-21.jpg"> <img src="img/case-21.jpg" alt=""> <p>Proiect case Selimbar 1.</p> </a> </li> <li> <a href="img/case-22.jpg"> <img src="img/case-22.jpg" alt=""> <p>Proiect case Selimbar 2.</p> </a> </li> <li> <a href="img/case-23.jpg"> <img src="img/case-23.jpg" alt=""> <p>Proiect Case Selimbar 3.</p> </a> </li> <li> <a href="img/case-31.jpg"> <img src="img/case-31.jpg" alt=""> <p>Casa Popa Flaviu 1.</p> </a> </li> <li> <a href="img/case-32.jpg"> <img src="img/case-32.jpg" alt=""> <p>Casa Popa Flaviu2.</p> </a> </li>
</ul>
</section>
<footer>
<img src="img/facebook-wrap.png" alt="Facebook logo">
</a>
<p>© 2015 Man Razvan Vasile.</p>
</footer>
</body>
</html>
3 Answers
David Curtis
11,301 Pointschange hreh= to href on lines 3 & 4.
Alberto Candido
4,938 PointsAre you sure you put the css file in the right folder? It shuold be under "CSS", tabbed from the rest of the content.
Razvan Vasile Man
289 PointsIt was the sintax error with the "hreh" . I refreshed the directory tree and now it works fine . Thak you for your help.
Razvan Vasile Man
289 PointsRazvan Vasile Man
289 PointsThe "body" section is there but when pasted it doesnt show.