4 ms·
I used the child combinator (>) and adjacent sibling combinator (+) a lot. I think these aren't used much in real-world code?
by nayuki 5y ago
I used the child combinator (>) and adjacent sibling combinator (+) a lot. I think these aren't used much in real-world code?
- throwaddzuzxd 5y agoI personally use them a lot. `+` is very useful to create separators, e.g.: p + p { border-top: 1px; } I also like to use `>` as much as possible instead of the implicit ` ` child selector, I find it more robust and less surprising. I rarely use `~` though, but it has its uses.