How to align my button to the right of the screen

I have a web form and on one line I have some text, that is followed by a button. I need to have the button moved more to the right of the screen (Almost to the end of the right side of the screen). The problem is that I am not able to do this. I have even tried using many   commands but this does not work. ( I cut and pasted my code snippet below and the alignment is thrown off. Just just and paste into the IDE editor or notepad to get the alignment looking right for better readability.
<asp:Label ID="Label33" runat="server" Font-Bold="True" Font-Size="Large"                  ForeColor="#6699FF" Text="Seating Arrangement"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label39" runat="server" Font-Bold="True" Font-Size="Small" 
                ForeColor="#6699FF" Text="Pending Activation"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                
                <asp:Button ID="Button1" runat="server" BackColor="White" BorderColor="#3366CC" align="right"
                 BorderStyle="Ridge" Font-Bold="True" ForeColor="Black" 
                Text="Inactivate Arrangement" />

Open in new window

LVL 2
brgdotnetcontractorAsked:
Who is Participating?
 
techExtremeConnect With a Mentor Commented:
Hi, try placing your button markup in a div like this:

<div style="display:block;float:right;">
...your button html markup here...
</div>

0
 
Praveen VenuConnect With a Mentor Technical Project ManagerCommented:
<table width="100%"><tr><td>
<asp:Label ID="Label33" runat="server" Font-Bold="True" Font-Size="Large"                  ForeColor="#6699FF" Text="Seating Arrangement"></asp:Label>      
                <asp:Label ID="Label39" runat="server" Font-Bold="True" Font-Size="Small"
                ForeColor="#6699FF" Text="Pending Activation"></asp:Label>            
                </td><td align="right">
                <asp:Button ID="Button1" runat="server" BackColor="White" BorderColor="#3366CC" align="right"
                 BorderStyle="Ridge" Font-Bold="True" ForeColor="Black"
                Text="Inactivate Arrangement" /></td></tr></table>
0
 
nmarunConnect With a Mentor Commented:
Add the contents of your page into a table with the width of the table set to a 100% and in the last row, set the alignment to right and add the button in this row.

<table width="100%">
  <tr>
    <td>
        ... content here
    </td>
  </tr>
  <tr>
    <td>
        ... and here
    </td>
  </tr>
  <tr>
    <td align="right">
       <asp:Button ID="Button1" runat="server" BackColor="White" BorderColor="#3366CC" BorderStyle="Ridge" Font-Bold="True" ForeColor="Black" Text="Inactivate Arrangement" />
    </td>
  </tr>

Open in new window

0
 
brgdotnetcontractorAuthor Commented:
All good answers. The use of Div is what I needed. Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.