I need to apply css to a parent and 3 nested deep children, this works:
.the-parent,
.the-parent > div,
.the-parent > div > div,
.the-parent > div > div > div{
display: flex
}
Is this the only way to accomplish this?
I was thinking of simply:
.the-parent div{
display: flex
}
But that will select ALL children deep, and I only need 3 children deep.
I wonder if there is better syntax such as:
.the-parent >(3) div{
display: flex
}
I hope it make sense, thank you