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

Alcibiades Montas
Alcibiades Montas
5,974 Points

Issues with responsive Grid?

Hi guys,

I am trying to recreate the 12 column grid on the CSS foundation videos here. I took up one of the project files and tried to insert two grid-6 columns to create one row that add s up to 12...However there is a space in between the two columns? Could you guys take a look?

here is the project in question:

https://dl.dropboxusercontent.com/u/29317895/AlexResume3.html

4 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Alcibiades Montas,

Each grid-6 column is 49% wide, so the 2% left over is the "gutter" space.

Jacob Miller
Jacob Miller
12,466 Points

In your CSS .grid-6 has a width of 49%. Bump that up to 50% to fix it.

Mark Phillips
Mark Phillips
13,124 Points

Hi Alciblades,

The space between the columns is because the grid-6 class is set to 49%. (See code below) if you change this to 50% the two grid-6 columns will fill 100% of the width of the parent container.

.grid-6 { width: 49%; }

Alcibiades Montas
Alcibiades Montas
5,974 Points

That fix the issue!!! thank you that works!