over 9 years ago
Nesting is used to style your structure of the stylesheet that matches the HTML structure of the page to reduce the chance of conflicts.
Example:-
In the above code we write css for "li" inside the curly bracket of "ul".
output:-
In less whenever you have to do nesting, is to just put its child property into its parent backet.
0 Comment(s)