Is there a way to create a zig-zag list where alternate list elements are right aligned while the others remain left aligned? I want it to look like this: Item1 Item2 Item3 Item4
I was able to achieve this layout, but the bullets on the right side were still appearing on the left. How can I fix this issue with the bullets included?
ul{
list-style-type: none;
padding-left: 0;
}
ul li {
margin: 25px 0;
padding-left: 45px;
}
ul li.odd {
float:right;
}
ul li.even {
position:relative;
}
<ul>
<li class="odd">
Item1
</li>
<li class="even">
Item2
</li>