I have four elements of a menu the first on the left the other three on the right, but when floating ul li
float:right;
the elements are positioned in a disorderly manner.
[Menu3] [Menu2] [Menu1]
But the elements should be displayed in this order:
[Menu1] [Menu2] [Menu3]
The complete code in execution: link
How do I show the elements in order, but in the same menu design?
.menu {
width: 100%;
float: left;
}
.menu ul li {
float: right;
list-style-type: none;
text-align: left;
}
.menu ul li a {
padding: 10px;
}
<div class="menu">
<ul>
<li style="float:left;">logo</li>
<li><a href="">Menu1</a></li>
<li><a href="">Menu2</a></li>
<li><a href="">Menu3</a></li>
</ul>
</div>