title: Aligning label and textbox on same line (left and right)
body: <p>I have an ASP.NET control. I want to align the textbox to the right and the label to the left.</p>
  
  <p>I have this code so far:</p>
  
  <pre><code>        &lt;td  colspan="2"&gt;
  
  
                  &lt;asp:Label ID="Label6" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
  
  
          &lt;div style="text-align: right"&gt;    
                  &lt;asp:TextBox ID="TextBox3" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;/div&gt;
  
          &lt;/td&gt;
  </code></pre>
  
  <p>The textbox aligns to the right, but the label aligns to the left and on the line above. How can I fix this so that the label is on the left, the textbox on the right, and both on the same line?</p>
  
  <p>Thanks</p>