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
204,019 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.