I have a cell in an HTML <table>
. I would like part of the cell contents to be left justified and part to be right justified. Is this possible?
To place an item at the top or bottom of its cell, insert the "VALIGN=" attribute within the code for that cell. To vertically align an entire row (e.g., placing all data in that row at the tops of the cells), insert the "VALIGN=" attribute within the code for that row.
The text-align-last property specifies how to align the last line of a text. Notice that the text-align-last property sets the alignment for all last lines within the selected element. So, if you have a <div> with three paragraphs in it, text-align-last will apply to the last line of EACH of the paragraphs.
If you want them on separate lines do what Balon said. If you want them on the same lines, do:
<td> <div style="float:left;width:50%;">this is left</div> <div style="float:right;width:50%;">this is right</div> </td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With