Brian Brian - 10 months ago 55
CSS Question

Right align and left align text in same HTML table cell

I have a cell in an HTML

. I would like part of the cell contents to be left justified and part to be right justified. Is this possible?


If you want them on separate lines do what Balon said. If you want them on the same lines, do:

  <div style="float:left;width:50%;">this is left</div>
  <div style="float:right;width:50%;">this is right</div>