Grid layouts are very neat aspects of cascading style sheets; as their name indicates, they allow web developers to create page designs in an order that follows the familiar column and row paradigm. Instead of using the old HTML positioning and floating declarations, you can use display properties such as grid or inline-grid. An example would be:
div class="grid-container"
div class="grid-item"
grid-column-gap
grid-row-gap
grid-gap
To cut down on the CSS grid coding you need for your projects, there are a couple of convenient online resources to try out; one of them is CSS Grid Generator provided by the Netlify cloud platform. With this tool, you can design grids with an easy click-and-drag user interface. This generator is fully responsive, so you can play around with different grid layouts from your smartphone. The developer responsible for this generator, Sarah Dresner, can be found on Twitter as Sarah Edo, and she has other useful projects, including one that can help you generate CSS hero images for web layouts.
Another CSS generator you can use can be found at LayoutIt; this one works with CodePen, but it is mostly intended to be used on desktop and laptop machines. The drag-and-drop interface of this is more intuitive, and you can see the CSS code changing dynamically on a side panel.
One of the advantages of CSS grids is that they present a modern layout many visitors will feel comfortable with. If you read articles on Medium, you will notice that the centered positioning of their articles flows nicely on both desktop and mobile screens; this is accomplished with a number of flexible grid columns, and the CSS grid property makes it a lot easier than the older methods of adding wrappers, setting up media queries, and defining widths by means of margins.
Using the CSS grid generators mentioned above will certainly help beginners understand how the properties work, but if you would like a more entertaining method of learning, try the amazing Grid Critters game, which puts coders on a spaceship that lands on Grideros, a mysterious planet where you can save friendly alien beings from extinction by coding rows and columns. For more information click here https://cssgrid-generator.netlify.app/.