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 trialanthony amaro
8,686 Pointsis this a good practice?
in the video guil declared 3 columns of 320px 320px 320px
.
but is it the same if i do it this way. ?
grid-template-columns: repeat(3, 320px);
thank you.
2 Answers
Cooper Runstein
11,850 PointsI'd say no unless you know that all columns are always going to be equal in size no matter what. The problem with that solution comes when you want to change a single column size which might not be hard now, but once your project has gained in size and scope that can be a huge task that could have been avoided. On the other hand, if you know there isn't any possibility of that, then there isn't any problem.
Matthew Cushing
12,048 PointsJust to add my 2 cents as well. You are literally typing the same amount of characters as well (15 characters each). You're only saving on pressing the space bar one time. Definitely more trouble than it's worth.