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