Hey there, been so much fun toying with CSS grid layouts since the new release. Really awesome stuff, a big thumbs up to the entire team and especially Kory for finally adding this feature!
I’ve run into some trouble toying with it though, and it has to do with the old section-row-system’s Container Max Width. As most of the site I’ve made so far has been using sections and rows (with flexbox, basically) in the No Container template, most of the site content respects the site’s max width (in this case 1300px) set in the Theme Options. However, I can’t seem to get that to jazz very well with the new grid system…
The design
Basically, what i’m trying to make is two horizontal rows with different backgrounds, and one box that starts in the first overlaps into the second a little. In the past I’d do this with relative positioning, but the grid system promises no more hack-arounds, but I can’t get the hang of it. There’s some text elements around it too, by the way. See example below:
The problem
The problem is that once I recreate this in grid it comes out as absolute 100% width. I can’t find a way to simultaneously 1) control the color of the background rows and 2) create grid areas for content that can overlap and also 3) get those areas to stay within the boundaries of the rest of the site content. See example below:
The question
I’ve been wreaking my head around this problem and reading up on CSS Grid to see if I’ve missed anything. But I can’t find any examples that are able to do this too (all examples break the container max width, or are fully contained within the container so the sides are blank/not set to the right background color).
Considering the CSS Grid-element is just introduced, and that I’m sure others will love to read up on creative ways to put it to good use, your advice (ahem Kory ahem) is very much appreciated!