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 jQuery Basics (2014) Creating a Simple Drawing Application Perform: Part 1

not 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

This 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.

Marked as best answer

Kevin 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).

If you posted the exact question and code that you tried it would be easier to understand what exactly your problem is.

he 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