The calc() function allows us to
perform mathematical calculations
within CSS property values.
Let's look at an example:
In the example above, we used the calc() function
to dynamically calculate the height and width
of the <div> element based on changes in the viewport size.