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 trialScott Bedard
29,196 PointsWhy do you make the background image 200% 100%?
Not sure what that does exactly.
2 Answers
Atanas Sqnkov
14,981 PointsHello Scott!
In this particular exercise, Guil uses 200% and 100% for the X and Y position of the background so he can position the neat-looking diamond shapes in a stance that emphasizes on the welcome text. If you set a negative value on each of the X and Y values, you will create a mirrored image of the current background.
I hope this is as simple as I thought it would be. If anyone got a different way of explaining this, You're welcome!
Cheers!
Luca Dan
6,012 PointsHi, The percentage value of background-size property sets the width and height of the background image in percent of the parent element. first value= width second value= height.