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

Valentin Dumitrache
Valentin Dumitrache
968 Points

Why the background color dosen't change considering i had done everything ?

Soo this is my code -<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Dumitrache Valentin | K1 Fighter</title> <link rel"stylesheet" href="css/normalize.css"> <link rel"stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html"> <h1>Dumitrache Valentin </h1> <h2>K1 Fighter</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/boxing_gloves.jpg"> <img src="img/boxing_gloves.jpg" alt=""> <p>My boxing Gloves</p> </a> </li> <li> <a href="img/4.jpg"> <img src="img/4.jpg" alt=""> <p>My best knockout</p> </a> </li> <li> <a href="img/3.jpg"> <img src="img/3.jpg" alt=""> <p>My home k1 arena</p> </a> </li> </ul> </section> <footer> <a href="https://twitter.com/DumitracheValy"> <img src="img/5.png" alt="Twitter Logo"> </a> <a href="https://www.facebook.com/bombardieru.vandam"> <img src="img/6.png" alt="Facebook Logo"> </a> <p>Ā© 2015 Dumitrache Valentin.</p> </footer> </body> </html> -

main.css = body { background-color : orange }

1.Yes i have a css folder in which i have the main.css 2.Yes they are both with lowercase 3.It seems not even normalize it's not working

Please help , i'm out of options and i cannot continue the track

You are missing the < body > tag at the top.

Valentin Dumitrache
Valentin Dumitrache
968 Points

I actually have it i don't know why but the code has been copied withouth some lines

2 Answers

it's missing the "=" sign.

<link rel"stylesheet" href="css/main.css">

<link rel="stylesheet" href="css/main.css">
Valentin Dumitrache
Valentin Dumitrache
968 Points

Thank you a lot , i was really struggling here :D

Your links to the CSS files are missing something.