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

Nick Mullen
Nick Mullen
299 Points

Orange is still not my background color - I've checked the syntax and that the main.css file is in the CSS folder.

Hi, I'm trying to figure out why my background color does not change to orange when I follow the instructions from this lesson. My lines of code seem to be exactly identical with Nick's from the video. Has this happened to anyone else? I've tried deleting the file and starting over by creating a new main.css file, and I've also compared the code over and over and cannot find anything that's different from the video.

Thank you! Nick Mullen

4 Answers

Alice Spencer
Alice Spencer
12,273 Points

Can you add the code you wrote, both CSS and HTML are helpful.

Alejandra Cuesta Monrroy
Alejandra Cuesta Monrroy
11,447 Points

Hi Nick Mullen

Did you add the main.css file in the index.html file?

inside of index.html this should be write

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Alejandra Cuesta | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css">

Hope that this will help you. Alejandra Cuesta

Alejandra Cuesta Monrroy
Alejandra Cuesta Monrroy
11,447 Points

Sorry this was the code

!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nick Pettit | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css">

Angela Farnsworth
Angela Farnsworth
865 Points

I am having this same issue and cannot figure out why the css files won't link with the index. *sorry can't get the markdown to work.

DOCTYPE html> html> head> meta charset="utf-8"> title>Title</title> link rel="stylesheet" type="text/css" herf="css/normalize.css"> link rel="stylesheet" type="text/css" herf="css/main.css">

/head>

Nick Mullen
Nick Mullen
299 Points

Hi, Thanks all for your answers - the problem for me was that my css folder was actually written as CSS, but in my code I kept everything lowercase. Didn't realize it was case sensitive.

Thanks again.