Forum Moderators: not2easy
What I'm trying to do is right-justify a set of small images within a div that contains plain, old left-justified text.
The old code looked something like this:
<tr bgcolor="#666">
<td>
Title Text
</td>
<td align=right>
<img src="/images/detach.gif" alt="Collapse">
<img src="/images/edit2.gif" alt="Edit">
</td>
</tr>
And I'm trying to replace it with...
<div class="titlebar">
Title Text
<img src="/images/detach.gif" alt="Collapse">
<img src="/images/edit2.gif" alt="Edit">
</div>
To the best of my knowledge CSS2 provides no means to simply apply an {align: right;} attribute to an image that will shift it to the right-most position within a block.
I'd welcome suggestions. So far I've tried a number of different arrangements involving encasing the images in a separate div and applying <div style="clear: both;"></div> to get the divs to sit beside each other. Now I'm giving up and asking the world for assistance.