I am currently working on a small widget for a webpage that displays steps in reverse order. My plan is to use an ol
element and adjust the value
attribute on each li
tag to make the numbering of the ordered list reversed. Everything seems to be going smoothly so far.
However, I've encountered a design challenge that I'm not certain can be resolved using CSS.
Is it feasible to center the text while maintaining left alignment for the labels within this markup?
<ol>
<li value="5">item 5</li>
<li value="4">item 4</li>
<li value="3">item 3</li>
<li value="2">item 2</li>
<li value="1">item 1</li>
</ol>
Below is an image to help demonstrate the desired text formatting.
It would be disappointing if I had to insert additional spans into my code for something that ordered lists handle automatically.