How can I get the buttons to the right to align vertically, i.e. have an even right margin to this <ul>
?
A node in the list looks like this:
<ul style="list-style:none;width:100%;">
<li style="width:100%;">
<table width="100%">
<tr>
<td>Parent 1</td>
<td align="right">
<!-- delete button -->
<!-- edit-button -->
</td>
</tr>
</table>
<!-- child-<ul>s here -->
</li>
<!-- sibling-<li>s here -->
</ul>
The apparent problem with my code is that I have separate tables on each <li>
, and they are not the same width. How can I organize the list to make the right margin perfectly even?