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?

enter image description here

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -