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 How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Anything that i put on main.css will not show up on my preview.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hairo Barea | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html"> <h1>Hairo Barea</h1> <h2>Designer</h2> </a> <nav> <a> <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> </a> </nav> </header> <section> <ul> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>SLS AMG</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>C63 AMG</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>C63AMG, M3, S5, 911 turbo</p> </a> </li> </ul> </section> <footer> <li> <a href="https://twitter.com/8area4a1r0"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a> <a href="https://www.facebook.com/hairo.serrano.3"><img src="img/facebook-wrap.png" alt="Facebook logo"></a> </li> <p>ยฉ 2015 Hairo Barea.</p> </footer> </body> </html>

Please Help Me!

  • I had to download the normalize.css from a question forum because it was not opening on my computer.

3 Answers

Joe Rizza
Joe Rizza
8,513 Points

It's hard to say what the issue could be as I'm not sure what you have been trying in your css, but off the top of my head you should verify that style.css exists in the css directory.

You are also missing a <section> start tag.

Looks like you are missing your opening and closing head and body tags.

Be sure you created the folder "css" and the main.css is in it.