Sass min() Function

Last Updated:

Sass min() Function

The min() function returns the lowest of one or more numbers. A list of numbers can be passed using ... (three dots).

Example

SASS TO CSS CONVERTER
//Check your console @debug min(2px, 4px); // 2px $heights: 30px, 60px, 90px; @debug min($heights...); // 30px

Syntax

min($x, $x1, ..., $xN)

Parameter Value

ValueTypeExplanation
$x, $x1, ..., $xN Required Numbers (minimum two)

Return Value

ValueExplanation
Number Returns the lowest of one or more numbers.

Share this Page

Meet the Author