The numbers of the list are moving according to the text length of the li
, causing the vertical align to drop. Notice that I have styles the numbers, as you can see in the fiddle.
I tried to use a span, but I couldn't get it working.
CSS
li span {
vertical-align: middle;
display: inline-block;
}
HTML
<ol class="rounded-list center_ol">
<li class="cool_white"><a href=""><span>Yannis Drogitis</span></a>
</li>
<li class="cool_white"><a href=""><span>Dimitris Mariglis</span></a>
</li>
<li class="cool_white"><a href=""><span>Kots Mariglis</span></a>
</li>
</ol>
How to make the numbers align vertically, in respect to every other number in the list?
Not to be confused with this question: Left align ol numbers with the heading in the same “column”