<div class="header-wrapper">
<div>
<nav>
<ul>
<li>
<a class="link" href="/">Link</a>
</li>
</ul>
</nav>
</div>
</div>
I want to change the background colour of the div with the class header-wrapper when hovering on the link. Can I do this with just css or scss?
a.link:hover {
.header-wrapper {
background: red;
}
}
And several more variations of this, parent selector in scss.