0

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>
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Spycat
0

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>
0

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...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.