Lamloumi Afif
Lamloumi Afif

Reputation: 9081

html align column right

I have this Html code :

  <tr>

    <td>
      <a type="text" 
        name="color" >@client.Login</a>
    </td>

    <td>
      <a type="text" 
        name="color" >@client.Mail</a>
    </td>
      <td>
      <a type="text" 
        name="color" >@client.Password</a>
    </td>
      <td>
      <a type="text" 
        name="color" >@client.Name</a>
    </td>
               <td width=10px align="left">
            @if (i == 0)
            {

      <input type="radio" 
        name="color" checked >
            }
            else
            {<input type="radio"  name="color" >
            }      
    </td>
  </tr>

My problem is in the radio button : it is so far to the other elements. the attribute align is obsolete in HTML5 . far

the dimensions : dim

So how can modify this snippet to got a good result?

Upvotes: 0

Views: 824

Answers (1)

Kasyx
Kasyx

Reputation: 3200

Use CSS text-align instead of align:

<td width=10px style="text-align: right;">
    @if (i == 0)
    {
         <input type="radio" name="color" checked >
    } else{
        <input type="radio"  name="color" >
    }      
</td>

Upvotes: 1

Related Questions