3 ms·
`h2, h2 ~ p` ought to do it.
by recursive 7y ago
`h2, h2 ~ p` ought to do it.
- mstade 7y agoIt doesn't: https://jsbin.com/quqibamivo/edit?html,css,output https://jsbin.com/quqibamivo/edit?html,css,output There's no way of doing this with css selectors alone, to my knowledge, you need to wrap the elements in some container.