Sass join() Function
You are Here:
Sass join() Function
The join()
function returns a new list containing the elements of list1 followed by the elements of list2.
Example
SASS TO CSS CONVERTER
.foo{
margin: join(10px 20px, 30px 40px);
margin: join((blue, red), (#fff, #000));
margin: join(10px 20px, 30px 40px, $separator: comma);
margin: join([10px], 20px);
margin: join(10px, 20px, $bracketed: true);
}
Syntax
join($list1, $list2, $separator, $bracketed)
Parameter Value
Value | Type | Explanation |
---|---|---|
$list1 | Required | Specifies the first list. |
$list2 | Required | Specifies the second list. |
$separator | Optional | Specifies the separator.
|
$bracketed | Optional | Specifies whether or not to include bracket.
|
Return Value
Value | Explanation |
---|---|
list | Returns a new list containing the elements of $list1 followed by the elements of $list2. |
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.