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.

CSS Framework Basics Build a Website with Foundation Styling the Headline Panel and Buttons

Scott Bedard
Scott Bedard
29,196 Points

Why do you make the background image 200% 100%?

Not sure what that does exactly.

2 Answers

Atanas Sqnkov
Atanas Sqnkov
14,981 Points

Hello 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!


Luca Dan
Luca Dan
6,012 Points

Hi, 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.