The calc() Function

Additional links:

Experimental

Use an expression anywhere a <length>, <frequency>, <angle>, <time>, <number>, or <integer> is required. This allows calculations to be performed to determine CSS property values.

Syntax for calc()
 Syntax
CSScalc( <calc-sum> ), where <calc-sum> = "<calc-product> [ [ '+' | '-' ] <calc-product> ]*", <calc-product> = "<calc-value> [ '*' <calc-value> | '/' <number> ]*", and <calc-value> = "<number> | <dimension> | <percentage> | ( <calc-sum> )"

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem