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 Layout Basics Getting Started with CSS Layout Centering Page Content and Creating a Full-width Header

Gerald Susanteo
seal-mask
.a{fill-rule:evenodd;}techdegree
Gerald Susanteo
Front End Web Development Techdegree Student 7,117 Points

whats the code to make the background image or color stretched? i dont really get the video sorry, im still a noob

I dont really get the video because it didnt tell me to add any code and i cant figure out what code makes the background color streched

Tim Oltman
Tim Oltman
7,730 Points

Guil simply deleted the "wrapper" div that contained the header. The CSS styling for that class set the margin to 70%. Without that wrapper, the width of the div went back to the default which is 100%.

I hope that helps.

2 Answers

Steven Parker
Steven Parker
231,248 Points

There are several settings for background images, one you might find useful is "background-size: cover".

For simple colored backgrounds, the entire element should be filled by default.

Show your code if you need help with a specific situation.

Steven Parker
Steven Parker
231,248 Points

Gerald Susanteo — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!