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 trialR R
1,570 Pointscan't see updates made through external css
Trying to change - with no luck- the background color to see if my external css file named "main.css" is being picked up . Anyone see what I'm doing wrong?
Here's the code on index.html:
<!DOCTYPE html> <HTML> <head> <meta charset="utf-8"> <title>Name | Name title</title> <link rel="styesheet" href= "css/normalize.css"> <link rel="styesheet" href= "css/main.css">
</head> <body> <header> <a href= "index.html"> <h1>Name</h1> <h2>Name title </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="image1.jpg"> <img src="img/image1.jpg" alt=""> <p>Image1 caption</p></a> </li>
<li>
<a href="image2.jpg">
<img src="img/image1.jpg" alt="">
<p>Image2 caption</p></a>
</li>
<li>
<a href="image3.jpg">
<img src="img/image3.jpg" alt="">
<p>Image3 caption</p></a>
</li>
<li>
<a href="image4.jpg">
<img src="img/image4.jpg" alt="">
<p>Image4 caption</p></a>
</li>
</ul>
</section>
<footer>
<a href="http://twitter.com/name"><img src="img/twitter-wrap.png" alt="Twitter logo"></a>
<p>© name_here.</p>
</footer>
</body>
</HTML>
here's the code for main.css:
body { background-color: orange; }
Index.html is at the top level. main.css and normalize.css are one level down in a folder named "css."
5 Answers
R R
1,570 Pointsawwww, man. Thanks. So simple. Much appreciated, Damian. :-)
Damian Andrews
9,475 PointsYou've mispelt 'stylesheet' in your link rel's.
Damian Andrews
9,475 PointsPlus you should remove the unnecessary spaces after the href= too.
R R
1,570 PointsWill do! Thanks!
Damian Andrews
9,475 PointsGlad to help. Happy coding! :o)