I have a bit of a puzzle that I’m trying to solve.
It involves setting a full width column background (so that it extends to browsers edge) while still maintaining the overall site width seen in a row with the container ON.
I’ve come up with two possible solutions (I think) but wanted to see if there was something easier, simpler or more elegant.
In the secure note you will find a sample page.
I’ve included sections at the top and bottom to further illustrate the site width.
The first section with the blue gradient is the standard section/row/column build. A background image on the column with the row container ON.
The next section is my first solution. Setting a background image to the entire section but constraining the size to match how the row is broken up into columns. I have a media query on the section element to flip the size once it goes to a single column on SM/XS breakpoints.
The last solution involves removing the section background. Placing the background on the column instead and setting the row container to OFF. But to move the column to the center of the page to mimic a container row, I’ve turned on the flexbox option on the column and horizontal aligned the block left and right.
I think I like the section background better, but again, I was wondering if I’m missing a more basic approach to this.
Thank you for reading and hopefully proposing another alternative.