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 The Solution

Hanna Zeif
Hanna Zeif
11,309 Points

Solution didn't work

I put in the exact code that he showed here and it didn't work. Anyone know why not? When I checked developer tools, the the grid-template-columns property was struck through and had a yellow triangular warning sign next to it. I can't find any styles that are overriding this one, so I'm not sure why that would happen.

.main-content { width: 95%; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr); grid-gap: 20px; }

1 Answer

Steven Parker
Steven Parker
231,198 Points

It might not be "exact" quite yet.   :wink:

Compared to what is shown in the video, it looks like the "repeat" function here is missing a closing parenthesis.

Hanna Zeif
Hanna Zeif
11,309 Points

So frustrating when I miss that kind of thing! Thank you!