Sass append() Function

You are Here:

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
$listRequiredSpecifies a list.
$valRequiredSpecifies the values to be appended to the list.
$separatorOptionalSpecifies 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
listReturns a copy of $list with $val added to the end.

Reminder

Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author