Going edge-to-edge inside a narrower column of text is an old problem with plenty of existing answers, and a few recent proposals show how differently it can be approached now that CSS has stronger layout primitives.
The classic technique is a small utility class:
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
It holds up when the column is centered, though horizontal overflow has to be dealt with by hiding overflow-x on the column or the body, since the technique can otherwise push content sideways.
Josh Comeau's alternative sets up a three-column grid, keeps most content in the middle column, and reserves the outer columns as breakout space:
.wrapper {
display: grid;
grid-template-columns:
1fr
min(65ch, 100%)
1fr;
}
.wrapper > * {
grid-column: 2;
}
.full-bleed {
width: 100%;
grid-column: 1 / -1;
}
The appeal is that the grid becomes a literal object to design against: the left spacer can be half the width of the right one, so the surrounding space stays available for use rather than simply vanishing. Two properties of the approach are less comfortable. Everything inside the container becomes a grid element, which subtly changes behavior — margin collapsing no longer happens, for instance. And the default you want has to be applied to each element; instead of content stacking on its own, every element must be selected and told where to go, after which a utility class is still needed for the bleeding itself.
Kilian Valkhof answered with a different arrangement:
body > *:not(img):not(video) {
position: relative;
max-width: 40rem;
margin: auto;
}
Here the width of everything in the container — the body, or any other parent — is constrained, with the exception of the elements meant to bust out. Those need not be images or videos, and that escape hatch could equally be a utility class.
Both approaches share a trade-off worth naming. Selecting every element to hand it fundamental layout information runs against the habit of sizing and positioning a container and letting its contents lay themselves out with little further instruction. That is a matter of familiarity rather than a reason to avoid either technique.
What stands out is the range of options available for the same goal, and the willingness to discuss what each one costs.



