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

leo kamin
leo kamin
5,550 Points

cannot set the background color

this is a link to the code I'm having trouble with I cannot set the background color and cannot get my links to the far left side of the screen http://codepen.io/mr_lion/pen/jvrKJ

4 Answers

Chris Dziewa
Chris Dziewa
17,781 Points

On body and html tags you have a space between background and color instead of a hyphen.

Chris Dziewa
Chris Dziewa
17,781 Points

For your second question, the browser is adding default styling to the ul element. Add this to your css:

ul {
   padding: 0;
 }
leo kamin
leo kamin
5,550 Points

I tried but it didn't work.

Chris Dziewa
Chris Dziewa
17,781 Points

Also, remove the width on the li element. Let me know if that fixes it. You also may need to add display: inline-block; to the li selector.

leo kamin
leo kamin
5,550 Points

The li Is still in the middle of the ul.

James Barnett
James Barnett
39,199 Points

You've got a few syntax errors, such as missing hyphens in property names and missing colons.

Analyze your CSS to find them all.

http://blog.codepen.io/2013/11/11/analyze-html-css-js/