function
pow() — CSS reference
Raise a number to a numerical exponent. Both arguments must be numbers, not lengths. A negative base with a non-integer exponent generally produces NaN; do not assume complex numbers are available.
Formal Syntax & Structure
css syntaxcss
pow(<calc-sum>, <calc-sum>)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS math lab</title><style>body {margin:0} .sample {height:12px;background:#006050}.parent {width:300px} .sample {width:40px;margin-bottom:4px} #a {width: calc(10px * pow(2, 3))} #b {width: calc(10px * pow(4, 0.5))}</style><body><div class="parent"><div id="a" class="sample"></div><div id="b" class="sample"></div></div></body></html>