View Single Post
  #2  
Old 02-11-2008, 08:05 AM
xact Offline
pp regular
 
Join Date: Oct 2007
Posts: 46
HTML:
Code:
<div class="container">

  <div class="left-element">
  Content in left item
  </div>

  <div class="right-element">
  Content in right item
  </div>

</div>
CSS:

Code:
.container {
   position: relative;
   height: 50px;
   }

.left-element {
   position: absolute;
   left: 0;
   width: 50%;
   }

.right-element {
   position: absolute;
   right: 0;
   width: 50%;
   text-align: right; /* depends on element width */
   }
This one did the trick for me.
Reply With Quote