The CSS min() function selects the smallest value from a comma-separated list of expressions. Its real power comes with mixing relative and absolute units — for example, min(100%, 800px) acts as a shorthand for setting both width: 100% and max-width: 800px, making it a concise tool for responsive layouts.

1m read timeFrom matuzo.at
Post cover image
2 Impressions