CSS: min() max()
What is min() max()
The CSS min() function is a math function that takes two or more comma-separated values and returns the smallest value from the list.
For example, width: min(100%, 600px)
max() returns the biggest value from the list.
browser support
supported by all major browsers since 2021.