CSS
.box {
background: lightsalmon;
width: 25%;
padding: 8px;
height: 80px;
}
.circle {
background-color: aquamarine;
width: 25%;
padding: 8px;
}
CSS
.box {
background: lightsalmon;
width: 25%;
padding: 8px;
height: 80px;
}
.circle {
background-color: aquamarine;
width: 25%;
padding: 8px;
}
.box:has(+ .circle) {
background: yellow;
}
CSS
.box {
background: lightsalmon;
width: 25%;
padding: 8px;
height: 80px;
}
.circle {
background-color: aquamarine;
width: 25%;
padding: 8px;
}
.box:has(+ * + .circle) {
background: yellow;
}