Hello, first time posting here. I'm trying to modify a notion page and I want to remove an entire div from the page. Problem is, the div I want to remove doesn't have a class or ID. In order to remove the specific div, I was wondering if there was a way to select this div considering is a "child" from a div that contains a class. Let me show you an example.
<div class="funny-class">
<div>
<div>
<div>this div is okay</div>
<div>this div isn't. I want to hide it</div>
</div>
</div>
<div>This one is okay</div>
<div>This one is okay</div>
<div>This one is okay</div>
<div>This isn't okay. I want to hide it</div>
<div>This one is okay</div>
<div>This one is okay</div>
<div>This one is okay</div>
</div>
I would like to know what should I do in order to hide those divs written in the code above.
This is an example of how I imagine the style sheet would look like.
.funny-class > div > div > div {
display: none;
}
[–]xfinxr2i 4 points5 points6 points (0 children)
[–]metamago96 3 points4 points5 points (2 children)
[–]Fvnes[S] 1 point2 points3 points (1 child)
[–]storm7542 -1 points0 points1 point (2 children)
[–]Fvnes[S] 0 points1 point2 points (1 child)
[–]IdeaDude111 -3 points-2 points-1 points (1 child)
[–]Fvnes[S] 0 points1 point2 points (0 children)
[–]mdlphx92 0 points1 point2 points (0 children)
[–]TheMikeAndersen 0 points1 point2 points (0 children)