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,713 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
203,723 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
203,723 Points

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