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 trialGerald Susanteo
Front End Web Development Techdegree Student 7,117 Pointswhats 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
2 Answers
Steven Parker
231,269 PointsThere 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.
Gerald Susanteo
Front End Web Development Techdegree Student 7,117 Pointsoh i get it thx for the help!
Steven Parker
231,269 PointsGerald Susanteo — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!
Tim Oltman
7,730 PointsTim Oltman
7,730 PointsGuil 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.