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 CSS Grid Layout Introducing Grid Layout Add Gutters Between Rows and Columns

Grid-column-gap and grid-row-gap apparently depreciated.

I have been informed by VScode that grid-column-gap and grid-row-gap have depreciated in favour of column-gap and row-gap. Are these two now preferred and should we be using them?

2 Answers

Can confirm, using "column-gap", "row-gap" or just "gap" are the new properties to use. They work basically the same way as the "grid-" properties, just shorter. Thanks VS Code for notifying us of deprecated CSS!

Gary M.
Gary M.
14,187 Points

So many outdated things on tree house now, really questioning why I continue to spend money here.