Answer the question
In order to leave comments, you need to log in
How to get the parent element using SASS?
Hello, tell me please.
There is a code:
.parent {
color: red;
}
<div class="parent">
<span class="child">Hello World!!!</span>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't understand the question? Are you talking about the ampersant
.parent {
& .child {
color: red;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question