I have a code where the LI elements are floated left and aligned to the left of the container. I want to change their alignment to the right using CSS. How can I achieve this?
For example: [Item1..................................Item2]
Below is the HTML snippet:
<div class="menu">
<ul>
<li>Item1</li>
<li>Item2</li>
</ul>
</div>
P.S. It's important that the order of LI's remains unchanged.