I have the following structure just for example:
<div>
<div class="filho">teste</div>
</div>
I have class .filho
with position: absolute
;
I would like to know if using .filho
I can also apply a position: relative;
to div
parent using css or sass only?
I know I can create a class for div
parent. But I would like to know if there is a way to select a parent element through a child element in css. I researched and could not find anything to help me!