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

JORGE GONZALEZ
JORGE GONZALEZ
3,276 Points

What am I doing wrong in regards to my main.css style sheet?

Nick says to make sure that the link normalize.css is first and then below that I put the link main.css. I definitely did this. However, when entering properties on the main.css page and saving them and then executing the page, nothing is happening. In other words the simplest example is below. I added this on the main.css

body { background-color: red; }

After this I refreshed the page and nothing happened. I went back to the index.html page to make sure that the links were in proper order and they are. So what am I doing wrong?

Thank you.

Post your html code and the directory structure pls ;)

Viraj Kokane
Viraj Kokane
17,531 Points

Please can you post your code !!!

JORGE GONZALEZ
JORGE GONZALEZ
3,276 Points

Code & Data Structure

Here is the code and the structure as well.

2 Answers

Oh yes.

There is a small mistake in your code ;) You forgot the equal sign (=) between rel and stylesheet. Also you should add the attribute type="text/css" to each of the two link tags.

JORGE GONZALEZ
JORGE GONZALEZ
3,276 Points

Thank you. This fixed it.

However one quick question regarding the text/css portion.

Do you mean to do the following?

<link rel = "text/css" href="css/normalize.css"> <link rel = "text/css" href="css/main.css">

Viraj Kokane
Viraj Kokane
17,531 Points

Have you saved your index.html file and tried ?