function
sqrt() — CSS reference
Return the nonnegative square root of a number. A negative argument produces NaN. Multiply the unitless result by a length if a length is required.
Formal Syntax & Structure
css syntaxcss
sqrt(<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 * sqrt(81))} #b {width: calc(10px * sqrt(0.25))}</style><body><div class="parent"><div id="a" class="sample"></div><div id="b" class="sample"></div></div></body></html>