Is it possible to simulate a div around b and c items and to style it without changing this HTML?
I know there are ::before
and ::after
pseudo-elements but couldn't find any "wrapping" element. Maybe something like ::wrap(.b, .c)
.
<ul>
<li class="a">a</li>
<li class="b">b</li>
<li class="c">c</li>
<li class="d">d</li>
</ul>
A good example could be isolating and putting a single background image behind b and c.