A key thing in Grid is that the order of items in the source does not matter, as long as they are children of the element that has been declared as a grid. In this example, I have some content and then some ads which I have placed right at the bottom of the source. I can use Grid to visually display these in between sections of content.

I could then use Media Queries to display them elsewhere in a wider layout.

Credit to gridbyexample.com for inspiring this example.

[fl_row] {
    display:grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
}
[fl_row] .section1 {
    grid-row: 1 / 2;
}
[fl_row] .section2 {
    grid-row: 3 / 4;
}
[fl_row] .section3 {
    grid-row: 5 / 6;
}
[fl_row] .ad1 {
    grid-row: 2 / 3;
}
[fl_row] .ad2 {
    grid-row: 4 / 5;
}

In our urban and suburban houses, what should we do without cats? In our sitting or bedrooms, our libraries, in our kitchens and storerooms, our farms, barns, and brickyards, in our docks, our granaries, our ships, and our wharves, in our corn markets, meat markets, and other places too numerous to mention, how useful they are! In our ships, however, the rats oft set them at defiance; still, they are of great service.

How wonderfully patient is the cat when watching for rats or mice, awaiting their egress from their place of refuge or that which is their home! How well Shakespeare in Pericles, Act iii., describes this keen attention of the cat to its natural pursuit!

A slight rustle and the fugitive comes forth; a quick, sharp, resolute motion, and the cat has proved its usefulness. Let anyone have a plague of rats and mice, as I once had, and let them be delivered therefrom by cats, as I was, and they will have lasting and kind regard for them.

Advert!

Another lovely advert!