The CSS math functions allow mathematical expressions to be used as property values. Here, we will explain the calc(), max() and min() functions.
The calc() Function
The calc()
Function performs a calculation to be used as the property value.
CSS Syntax
calc(expression)
The max() function uses the largest value, from a comma-separated list of values, as the property value.
max(value1, value2, ...)
The min() function uses the smallest value, from a comma-separated list of values, as the property value.
CSS Syntax
min(value1, value2, ...)