I have a navigation menu on my site which is an unordered list. Elements naturally appear from left to right and in the correct order. It looks like this:
|[--1--][-2-][----3----][--4--].......| |[---5---][-6-][-----7-----][-8-].....| |[------9------][----10----]..........|
Obviously, if I put all the list items ("li") to the right, they will appear at the position in which I want them to go to the store, but in the reverse order:
|.......[--4--][----3----][-2-][--1--]| |.....[-8-][-----7-----][-6-][---5---]| |..........[----10----][------9------]|
I like positioning, but I don't need the reverse order. I need it to look like this:
|.......[--1--][-2-][----3----][--4--]| |.....[---5---][-6-][-----7-----][-8-]| |..........[------9------][----10----]|
The limitation that I present is that I cannot rewrite the HTML code of the menu in the reverse order. I want to do this only in CSS. Presumably, this can be done by placing an unordered list ("ul") to the right and moving list items (li) to the left. However, I was not successful in this, and since my CSS is so minimal, Iām not sure what I could lose.
Is the desired styling possible without modifying the HTML?
source share