Jump to content


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


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:

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


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

[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.