My HTML contains an ordered list with row striping, but it seems like the row striping is starting from behind the number. Is there a way to make the row striping start at the number itself?
I've attached a snippet showing what's happening.
h4:nth-child(even) {
background-color: red;
}
<div class='panel-body'>
<ol>
<h4 class="people" style="font-family: sans-serif; display: block;">
<li>
<span class="name">One, O</span>
<span class="status" style="color: rgb(79, 133, 27);">Arrived</span>
<span class="time" style="width: 97px; max-width: 97px;">In Service</span>
</li>
</h4>
<h4 class="people" style="font-family: sans-serif; display: block;">
<li>
<span class="name">Two, T</span>
<span class="status" style="color: rgb(79, 133, 27);">Arrived</span>
<span class="time" style="width: 97px; max-width: 97px;">Next</span>
</li>
</h4>
<h4 class="people" style="font-family: sans-serif; display: block;">
<li>
<span class="name">thr, t</span>
<span class="status" style="color: rgb(79, 133, 27);">Arrived</span>
<span class="time" style="width: 97px; max-width: 97px;">1 hr 20 min</span>
</li>
</h4>
</ol>
</div>