Jump to content

Archived

This topic is now archived and is closed to further replies.

FrOzeN

Two alignments on a single line (Left and Right)

Recommended Posts

How can I make it so two things (preferably divs or spans) sit on one line relative to where they are in the page.

I'm trying to do this without the use of tables. With tables the code would look as follows:
[code]...

  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td>Item 1</td>
      <td align="right">Item 2</td>
    </tr>
  </table>

...[/code]

[EDIT] Nvm, fiqured it out after a bit of playing around.

Result:
[code]<div style="float: left;">Item 1</div>
<div style="text-align: right;">Item 2</div>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.