Use an expression anywhere a <length>, <frequency>, <angle>, <time>, <percentage>, <number>, or <integer> is required. This allows calculations to be performed to determine CSS property values.
Syntax | |
---|---|
CSS | calc( <calc-sum> ), where <calc-sum> = "<calc-product> [ [ '+' | '-' ] <calc-product> ]*", <calc-product> = "<calc-value> [ '*' <calc-value> | '/' <calc-number-value> ]*", and <calc-value> = "<number> | <dimension> | <percentage> | ( <calc-sum> )" |