I need to have several elements in TD, and this size td is not more than% 50 of the table, and each row should be left aligned, but the largest text should βtouchβ the right side of the table.
<table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="line-height: 20px; width: 49%;"> <span style=" color: #FF00FF !important; font-size: 12pt; font-weight: bold;">Text First Cell </span> </td> <td style="width: 50%; text-align: right;"> <span name="span1" style="float: left; width: 100%;"> <span style="font-family: Arial !important; color: #FF00FF ; font-size: 12pt; font-weight: bold;">Text1 Second Cell Larger Text </span> </span> <span name="span2" style="width: 100%; float: left;"> <span style="font-family: Arial ; color: #FF00FF ; font-size: 12pt; font-weight: bold;"> Text2 Second Cell </span> </span> </td> </tr> </tbody> </table>
I can almost do this, but I cannot align the text "Text1 Second Cell Larger Text" and "Text2 Second Cell" to the left.
Any ideas? Also, if there is a better way to do this, I would like to know!
source share