I have two blocks- parent and child. On hover- parent block change grayscale. How can i keep child div with green color on hover (not grey, but green)?
<style>
.parent {
color:red
width: 100px;
height: 100px;
}
.child {
color: green
width: 50px;
height: 50px;
}
.parent:hover {
filter: grayscale(100%)
}
</style>
<div class="parent">
<div class="child">
</div>
</div>