By way of a post by Manuel Matuzović which is by way of a demo by Temani Afif.

.wrapper { margin-inline: max(0px, ((100% - 64rem) / 2)); }

You’d be doing yourself a favor to read Manuel’s breakdown of …


Manuel Matuzovic: max() Trickery originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.