Sass list-separator() Function

Last Updated:

Sass list-separator() Function

The list-separator() function returns the name of the separator used by a list, either space or comma.

Example

SASS TO CSS CONVERTER
@debug list-separator([1px 2px 3px]); // space @debug list-separator([1px, 2px, 3px]); // comma @debug list-separator(['sans-serif']); // space @debug list-separator(()); // space

Syntax

list-separator($list)

Parameter Value

ValueTypeExplanation
$list Required Specifies a list.

Return Value

ValueExplanation
string Returns the name of the separator used by $list, either space or comma.

Share this Page

Meet the Author