unable to reverse the order of ordered list
-
I am trying to reverse the order of numbers in the ordered list but unfortunately it doesn’t work.
I want 10,9,8,7,6, …1 but when I use the ordered list tag it appears in ascending order.
So, I try doing this:
‘- ‘
‘<li value=”5″>’ ”
‘‘
which is supposed to numbered as 5 but when I switch from html to visual editor it gets changed to 1,2,3.. instead of 5,4,3…
How do I achieve this ?The blog I need help with is: (visible only to logged in users)
-
The value attribute for lists has been depreciated, and since wordpress is moving into HTML5 full force, that could be why the “value” attribute is getting stripped out. Sadly, the new HTML5 method for use with XHTML doctypes (like here) does not work either, which would be
<ol reversed="reversed"> <li>first list item</li> <li>second list item</li> </ol> -
-
None that I can figure out and I’ve even tried some stuff that was way out there.
The problem is I’m not sure if the above code I’ve given as an example is supported by all modern browsers, and that can be a problem if it is not. Someone would have to research it and then see if they could talk staff into implementing it. This is another way of doing it (where the doctype is NOT XHTML).
<ol reversed> <li>first list item</li> <li>second list item</li> </ol>All I can suggest at the moment is to do it the old fashion way, numbering it out not using the ordered list. Of course if the the text goes to a second line it starts underneath the number.
- The topic ‘unable to reverse the order of ordered list’ is closed to new replies.