For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/css/data-type/length-percentage.md.
Lynx
  • English
  • <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.