Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Adventures with SASS ampersand Reply To: [Solved] Adventures with SASS ampersand

#189424
Paulie_D
Member

This..


p.a { color: green; }

…is not a parent selector. It’s a p with a class of ‘a’.

The ampersand selects the parent selector not the parent style.

http://thesassway.com/intermediate/referencing-parent-selectors-using-ampersand