CSS Selector: Last-child not working
<p>In the following example the first-child selector works, the last-child doesn't. Please see attached screenshots.</p>
<p>The Problem: My class &quot;gotit&quot; colors the bar green, the class &quot;go4&quot; colors it grey. The last gotit should be red. Sounds simple, huh?</p>
<p>So now dig in: If I try to select the first-child, it works like a charm:
<a href="https://i.stack.imgur.com/WFeQX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WFeQX.png" alt="enter image description here" /></a></p>
<p>If I try to select the last-child, it just does nothing.
<a href="https://i.stack.imgur.com/jGc0b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jGc0b.png" alt="enter image description here" /></a></p>
<p>Anyone here with a hint whats wrong? Thank you in advance!</p>