Mathematical expressions can be utilized as property values thanks to the CSS math functions. The functions max(), min(), and calc()will be explained in this section.
The calc() Function
A calculation is carried out using the calc() function and is used as the property value.
CSS Syntax
Value
Description
expression
Required. A mathematical expression. The result will be used as the value. The following operators can be used: + - * /
Example
Use calc() to calculate the width of a <div> element: