NameSilo

Aligning left and right?

NamecheapNamecheap
Watch

Nasimov

New Member
Impact
0
It's possible on the same line to have some stuff aligned to the left and other stuff aligned to the right? I mean something like the following:

<div align="left">left stuff</div><div align="right"> right stuff</div>

This doesn't work as each div is on its own line. I can do that by having a two column table and setting each cell to the correct alignment, but I was just wondering if there is another way to do it.

Thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You can do it with absolute positioning.

<div style="position:absolute; top:20px; left:20px">
Left
</div>
<div style="position:absolute; top:20px; left:50px">
Right
</div>
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back