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 CSS Layout Project Column Layout with Media Queries

right gap

Hello , I cannot get rid of the blank white space on the side of the site could someone help me center all of the floats into the center and also get them further away from the left ?

1 Answer

Steven Parker
Steven Parker
229,732 Points

The containers are set to 80% and 90% in the media queries. Use 100% instead if you want to reduce the white area on the right.

And "float"s don't have a "center" option. For centering items, you might want to use a different technique, like positioning, flexbox, or grid layout. Positioning is covered later in this same course, and there are other courses for both flexbox and grids.

thanks man much appreciated , it worked perfectly.