Why the selector does not work:
.parent > .child + .parent > .child { ... } Snippet:
.parent > .child + .parent > .child { color: green; } <div class="parent"> <p class="child">текст</p> <p class="child">текст (почему не зелёный?)</p> </div> To make it work, you can replace it with .parent > .child + .child , but the question is precisely why the original version does not work.