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 trialBrett Burley
2,922 Pointsbackground vs background-color
I'm just confused about when to use the selector background as opposed to background-color. I noticed when Nick declared the body background white (#fff) he used the selector background-color
Cheers
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Brett,
Background is just the short hand for many of the background values and can incorporate the color, image, repeat, etc.
You can get much more detail at the MDN site
Keep Coding! :)
Brett Burley
2,922 PointsBrett Burley
2,922 PointsThank you for clearing that up for me.