Looking for a way to split text in list elements? You can use the following code:
|Foo..............Bar|
Where | represents the element boundary, and . indicates white space. The code snippet is as follows:
<li><span class="left">Foo</span><span class="right">Bar</span></li>
However, if you're facing alignment issues with this approach, simply adding position: relative; right: 1px;
or float: right;
to .right
won't solve the problem.
UPDATE: text-align
didn't work either.
UPDATE 2: To clarify, the goal is to align some text to the left and some to the right side of the element.