html - How to align text in different rows with defined margin -
i trying solve 1 issue have table 2 columns.(see attached picture)
the problem have not found solution yet is, need have 30px right margin longest text right margin second table column, text in column must aligned left (the longest 1 , others must start @ same position). possible achieve it?
column width set 80% not have width.
what need utilize 'padding-' attribute.
<table> <tr> <td style="padding-right:30px;"> test1 </td> <td> other text </td> </tr> <tr> <td style="padding-right:30px;"> test185 </td> <td> other text </td> </tr> <tr> <td style="padding-right:30px;"> test1 </td> <td> other text </td> </tr> </table>
check out here... can make changes , test out. http://jsfiddle.net/tffbz/
Comments
Post a Comment