<length-percentage>

Equivalent to [ <length><percentage> ] with <percentage> will resolve to a <length>. Additionally support calc() math expression.

Syntax

A <length-percentage> can be a <length>, a <percentage> or a calc() math expression. The calc() function is a math function that allows basic arithmetic to be performed on numerical values, using addition (+), subtraction (-), multiplication (*), division (/), and parentheses.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.