I'm currently working on creating a grid layout similar to the designs shown below:
https://i.sstatic.net/SHLFe.png
While I have been successful in most aspects of the layout, I am facing difficulty with the first column. I'm trying to prevent it from spanning the full height of the row, aiming for a grid layout similar to the one illustrated in the first image. The gray cells represent divs where additional content will be inserted later.
https://i.sstatic.net/mJfz8.png
Below is a snippet of my CSS code:
.cards_grid {
grid-auto-columns: 1fr;
grid-column-gap: 1.5rem;
grid-row-gap: 1.5rem;
-ms-grid-rows: auto 1.5rem auto;
grid-template-areas:
"first first first first second second second second second third third third"
"fourth fourth fourth fourth fifth fifth fifth fifth sixth sixth sixth sixth";
-ms-grid-columns: minmax(auto, 1fr);
grid-template-columns: minmax(auto, 1fr);
}
I've also experimented with grid-layout-rows: masonry
, but unfortunately, it lacks support across various browsers.