CSS ⟩ values ⟩ functions
width: calc(10px * pow(5, 2)); /* 10px * 5² = 250px */
calc()
Modern CSS (2020)
CSSarrow-up-right ⟩ CSS functionsarrow-up-right ⟩ calc()arrow-up-right, pow()arrow-up-right
function
note
var( )
reference to a css variable.
calc( )
supports (+, -, *, /), "+" and "-" must be surrounded by whitespace.
clamp(min, pref, max)
arguments: the minimum size, the preferred size, and the maximum size.
Last updated 1 year ago