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 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
215,939 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!