Professional Documents
Culture Documents
Math()
Function
In CSS
aayush-jain-code
math functions ?
CSS math functions are one of the powerful
features of CSS. They are special CSS values
that enable front-end developers to perform
mathematical calculations and basic arithmetic
directly within their CSS stylesheets.
Combine values
using calc()
The CSS calc() function lets us perform
basic arithmetic—addition (+),
subtraction (-), division (/), and
multiplication (*) on numbers and CSS
length units.
Restrict numerical
values with clamp()
The CSS clamp() function lets us define a range
of possible values for a CSS property. These
values are evaluated and applied as the width
and height of the viewport change.