Please see the comment in my code. How would you do it?

Thanks.

<div style='width:400px; margin-left:auto; margin-right:auto;'>
  <table cellspacing="10" border="2">
    <form action="" method="post">

   	  <tr>
 <!--How do I get this cell to right justify without the align attribute which has been depreciated-->
        <td align="right">
          Login Email:
        </td>
        <td>
          <input size="24" type="text" name="firstname" />
        </td>
      </tr>

      <tr>
        <td>
         Login Password:
        </td>
        <td>
          <input size="24" type="text" name="firstname" />
        </td>
      </tr>

	  </form>
  </table>
</div>

style='text-align:right'

I should have been more thorough.

Please see the comment in my code. How would you do it?

Thanks.

<div style='width:400px; margin-left:auto; margin-right:auto;'>
  <table cellspacing="10" border="2">
    <form action="" method="post">

   	  <tr>
 <!--How do I get this cell to right justify without the align attribute which has been depreciated-->
        <td align="right">
          Login Email:
        </td>
        <td>
          <input size="24" type="text" name="firstname" />
        </td>
      </tr>

      <tr>
        <td>
         Login Password:
        </td>
        <td>
          <input size="24" type="text" name="firstname" />
        </td>
      </tr>

	  </form>
  </table>
</div>

Is this what you're after? :

<td style="text-align:right;">
   Login Email:
</td>

Or, to make it easier if you're going to right-align more than one cell,
use a css class attribute:

<style type="text/css">
.cell-right
{
   text-align:right;
}
</style>

Then...
HTML Section:

<td class="cell-right">
      Login Email:
      </td>

Voila...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.