Can you target the last X elements in a group using only CSS without knowing the total number of elements?
For example, is it possible to target the last 3 elements in a ul
using CSS?
<ul>
<li>Element 1</li>
<li>Element 2</li>
<li>Element 3</li>
...
<li>Element X-2</li>
<li>Element X-1</li>
<li>Element X</li>
</ul>