A short tutorial on the CSS max() function, which selects the largest value from a comma-separated list of expressions. The real utility comes with mixing relative and absolute units — for example, max(300px, 50vw) ensures an element is never smaller than 300px while still scaling with the viewport. This is functionally equivalent to combining min-width with a relative width value.
2 Impressions