Forum Moderators: not2easy
Ideally I want the first li to float left and the second li to float right. I have tried separating them by a right margin on the "li" but this obviously affects both lists which means there is a space between the right list item's right margin and the right border of the "unorderedList" until the margin to too wide and it is forced into the next line.
I've tried using li:first-child but this only works in IE and isn't flush on the right hand side.
<!-- html -->
<ul class="unorderedList">
<li class="list">List one</li>
<li class="list">List two</li>
</ul>
/* CSS */
.unorderedList { list-style: none; padding: 0px; margin: 0; clear: left; width: 519px; }
.list { width: 248px; float: left; margin: 0 5px 0 0; }
Knowledge from the experts would be great, thank you!