Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Fatima Khan
1,584 Pointsnot understanding the code and explanation
i can't understand what is going on.
css background is being 'get' but it says background-color.
seriously need someone to explain the code properly to me.
thanks.
3 Answers

Daniel Jenkins
17,714 PointsThis is probably a bit late but I've only just got here! Anyway, from your question I'm guessing you're wondering why Andrew sets the 'background-color' value when the CSS property used in the example is plain 'background'. If that's not your question, I wouldn't bother reading the rest of this.
The reason is that 'background' is a way of addressing all the properties related to background including color but also position, repeat and a few others. There's a more detailed explanation here in the MDN pages.

Christopher Turnbaugh
6,923 PointsKevin P agreed 100%. What makes his courses even worse is the "challenges" are rarely more than "on this line, fix this issue". The problems are just not difficult enough to grasp the material. The videos are also very difficult to follow along with because it seems the instructor is just winging it as he goes along. Rapid switches in what section of code we're working on (example: when he's starting to talk about selecting the controls li elements he suddenly decides we need a variable for color).

Caleb Sanchez
12,943 PointsIf you posted the exact question and code that you tried it would be easier to understand what exactly your problem is.

Kevin Faust
15,353 Pointshe doesnt explain things well. this teacher just glances over and just repeats a sentence from the api and assumes we all know what's going on and that we understand it when clearly 95% of us beginners dont have a clue
Marcus Parsons
15,718 PointsMarcus Parsons
15,718 PointsMarked as best answer