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 CSS Basics (2014) Basic Layout Backgrounds: Size and Position

does the order of the values in the shorthand background property matter at all?

Does the order of the values in the shorthand background property matter at all?

Does it make any difference at all or is the a reason why he set the values in that order?

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey Omar,

My apologies. I have deleted my original post as it was in error.

The order does matter for Background, I was thinking of the shorthand for Borders. Also for Background, you can omit some values (as the default will just be assigned). Have a look at here for a basic explanation.

:dizzy:

Thanks a lot!

I think the order does matter, however I'm not sure (I don't use CSS like every day)