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 How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

I assigned my footer a blue background but when I do that, I notice there is a large white space on the left and right.

When I changed the background colour, I noticed that the footer doesn't stretch out across the entire page. There is a space between the left and right side and my footer is in the middle. How do I make it stretch out across the entire page?

Can you provide the website?

Usually, If you can find the footer container css in your stylesheet, you can set the width to 100% and that should fix it.

2 Answers

I think Jenny is right, try setting the width to 100%. Also make sure that your left and right margins are set to 0.

Good luck!

Chris Hall
Chris Hall
Full Stack JavaScript Techdegree Student 11,442 Points

With out seeing your code I'm going to guess the footer has padding or a margin assigned to it, or isn't the correct width. Check all three for the footer then work your way up the tree to see if padding or margin has been set.