- Selectors should be listed under one rule
{color: red}. - It is impossible to cancel values - it is not known what they were before replacing with your selector.
It is necessary to be like this:
The code is:
.parrent { display: flex; justify-content: space-evenly; margin-bottom: 1em; } .child { width: 100px; height: 100px; border: 2px solid; background-color: blue; } <div class="parrent"> <div class="child"></div> <div class="child"></div> <div class="child"></div> </div> <div class="separator"></div> <div class="parrent"> <div class="child"></div> <div class="child"></div> <div class="child"></div> </div> ps: .parrent ~ .parrent .child:nth-child(3) - obviously, you can not write ...

.parrent ~ .parrent .child:nth-child(3)obviously you can not write? What in the end should be the state? Need to change only one item? - Grundy