DEV Community

Discussion on: Pure CSS Woman with Long Hair

Collapse
 
himanshupal0001 profile image
Himanshupal0001

what is the meaning of &-1 .....?
Also how you make everything absolute so that all the divs consize in the container and not shift their position on screen size change?

Collapse
 
bassohr profile image
Michael • Edited

Codepens are a good source for learning.
&-1 is a nested Sass selector. It selects the div with class="hair-1" since it is nested in the .hair class selector. The use of the ampersand as a placeholder for the parent will be incorporated in the CSS Nesting Module.

Collapse
 
himanshupal0001 profile image
Himanshupal0001

Thanks for the explanation.