Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
<table   align="left">
    <tr>
     <td>
 
        <asp:Label ID="lblqno" runat="server"></asp:Label>
 
        <asp:Label ID="lblQue" runat="server"></asp:Label>
        <br />
        <asp:RadioButtonList ID="rbtl" runat="server"
            onselectedindexchanged="rbtl_SelectedIndexChanged" AutoPostBack="true" >
           <asp:ListItem Text ="" Value ="Rd1" > </asp:ListItem>
           <asp:ListItem Text ="" Value ="Rd2"> </asp:ListItem>
           <asp:ListItem Text ="" Value ="Rd3"> </asp:ListItem>
           <asp:ListItem Text ="" Value ="Rd4"> </asp:ListItem>
        </asp:RadioButtonList>
 
&nbsp;<asp:LinkButton ID="lnkNxt" runat="server" onclick="lnkNxt_Click"
             ForeColor="#FF66CC" style="font-size:medium" Width="82px"><h2>Next</h2></asp:LinkButton>
         &nbsp;&nbsp;
 
        <asp:Panel ID="pnl" runat="server" style="color:red">
        </asp:Panel>
        <br />
        <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click"
            Text="Submit" Visible="False" />
            </td>
           </tr>
      </table>
Posted 10 Jan '13 - 1:56


1 solution

How To Align a Table between left and center on the page
Put a table on top of it such that you can control the alignment. For example: top table can have two columns and your existing can be placed in second column. Adjust width of first as per need and you can set the position the way you want.
 
Just keeping the one table, you cannot have two alignments. If you want to stick with one table, align it to left and keep a margin-left of 10/20px based on your need to shift the things towards center.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 586
1 Maciej Los 255
2 Slacker007 240
3 Aarti Meswania 233
4 OriginalGriff 230
0 Sergey Alexandrovich Kryukov 9,118
1 OriginalGriff 7,134
2 CPallini 3,803
3 Rohan Leuva 3,135
4 Maciej Los 2,558


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid