Is there a technical reason all the articles on CSS Grid layout use classes to identify each content DIV rather than IDs?
Is there a technical reason all the articles on CSS Grid layout use classes to identify each…
Troy Johnson
1

I can’t speak for other authors Troy, but I chose to use classes because it reflects the way I write CSS these days, in which I rely on “subclasses” quite a bit, i.e. class=”btn store”. So I suppose it’s just out of habit, plus the reusable nature of classes means less code to write and keep track of!

Like what you read? Give Jeremy Osborn a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.