While the `grid-template` property may be more concise than using the properties illustrated in the last two exercises, isn’t this syntax also less readable? Which syntax should I use here?


#1

Question

While the grid-template property may be more concise than using the properties illustrated in the last two exercises, isn’t this syntax also less readable? Which syntax should I use here?

Answer

I also find grid-template-row and grid-template-column properties to be more readable than the grid-template property. If you are working on a project with other people, then it is best to conform to whatever syntax your teammates have used. However, if you are working solo or there is no precedent for you to emulate, then this is really a matter of personal preference.

Whatever syntax you prefer, remember to be consistent with it.