Sass max() Function

Last Updated:

Sass max() Function

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

Example

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

Syntax

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

Parameter Value

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

Return Value

ValueExplanation
Number Returns the highest of one or more numbers.

Share this Page

Meet the Author