Sass append() Function

Last Updated:

Example

The append() function returns a copy of a list with a value added to the end.

Example

SASS TO CSS CONVERTER
.foo{ margin: append(10px 15px, 20px); margin: append(10px 15px, 20px, $separator: comma); }

Syntax

append($list, $val, $separator);

Parameter Value

ValueTypeExplanation
$list Required Specifies a list.
$val Required Specifies the values to be appended to the list.
$separator Optional Specifies a character separator between the list and value. The following are the possible values
  • auto - Returned list will use the same separator as $list. Default value.
  • comma - Returned list is comma-separted.
  • space - Returned list is space-separated.

Return Value

ValueExplanation
list Returns a copy of $list with $val added to the end.

Share this Page

Meet the Author