Brian Brian - 1 year ago 109
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?

Answer Source

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>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download