Sass selector-nest() Function
You are Here:
Sass selector-nest() Function
The selector-nest()
function combines $selectors as though they were nested within one another in the stylesheet.
Example
SASS TO CSS CONVERTER
#{selector-nest("ul", "li")} {
color: black;
}
#{selector-nest(".bar, .foo", "p")} {
color: black;
}
Syntax
selector-nest($selectors...)
Parameter Value
Value | Type | Explanation |
---|---|---|
$selectors... | Required | Specifies the multiple css selectors. |
Return Value
Value | Explanation |
---|---|
selectors | Returns the combined $selectors as though they were nested within one another in the stylesheet. |
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.