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

HTML How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Adding the style element

I copied what was done in the class and could not get the desired result. I cannot figure out what is going on.

2 Answers

When something doesn't work it's almost always syntax error. Check every { has corresponding } check every line has ; at the end check every class name is the same in the css file and the html file check all the spelling. I have had this problem so many times and even though I think I have copied something exactly there is always some microscopic thing missing, or wrong. If I could see your file I could check but since not I can only advise you to do so! Another way is to comment out sections until you get to the part that isn't working.

Thanks! I will check.