Less Parent SelectorsIn Less, the parent selectors are denoted by &(ampersand) operator. The parent selectors of a nested rule are represented by & operator and is most commonly used when applying a modifying class or pseudo-class to an existing selector. A list specifying the types of parent selectors:
Parent Selectors ExampleLet's take an example to demonstrate the usage of parent selectors. Create a HTML file named "simple.html", having the following data. HTML file: simple.html |