I want to create a list in html that has reversed ordered, non-consecutive years instead of numbers. It should look like this:
2009 Item 7.
2007 Item 6.
2006 Item 5.
2004 Item 4.
2003 Item 3.
2002 Item 2.
2000 Item 1.
I have code that works for reverse ordering number lists:
ol {
margin-left: 0;
padding-left: 1em;
text-indent: -1em;
}
<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>
This gives me:
5. Item 5.
4. Item 4.
3. Item 3.
2. Item 2.
1. Item 1.
If I simply add in a year:
<ol>
<li value="2002">Item 5.</li>
</ol>
The '2002' is moves inside the area for the item, instead of being set out to the left. Is there an easy way around this?