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

Background

I was wondering how i can make a scalable bg for my site, a css bg that will scale with the browser and wont show any border.

3 Answers

Try setting { body: background: url(yourbackground.png) no-repeat center center fixed; background-size: cover; }

There's also other methods here: http://css-tricks.com/perfect-full-page-background-image/

You will likely want to use background-size: cover; to achieve what you want, in the most simple form. Does that help?

awesome thanks guys! solved it