HomeThe ClassicsFarai's Codelab

Using max() for an inner-element max-width

Published:

See Using max() for an inner-element max-width on css-tricks.com

How to add inner padding to an element constrained by max padding to reach the edges. Honestly an inner div would be fine (if not better), but if you can’t do that this works too.