Edge-to-edge color bars inside a constrained grid
Marcel Moreau has published a how-to guide showing how to pair hard-stop gradients with CSS grid to solve a layout problem that is otherwise awkward to handle. Hard-stop gradients are described in the source as a favorite CSS trick, and the guide uses that idea as the basis for the technique.
The scenario: a desktop layout with something like a 300px right sidebar carrying its own background color. Filling the sidebar itself is simple. Stretching that color out to the right edge of the browser window while the grid itself stays width-constrained is harder.
The full write-up is available at the direct link.



