Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
<table   align="left">
        <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>
&nbsp;<asp:LinkButton ID="lnkNxt" runat="server" onclick="lnkNxt_Click"
             ForeColor="#FF66CC" style="font-size:medium" Width="82px"><h2>Next</h2></asp:LinkButton>
        <asp:Panel ID="pnl" runat="server" style="color:red">
        <br />
        <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click"
            Text="Submit" Visible="False" />
Posted 10-Jan-13 2:56am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
0 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 230
3 Abhinav S 175
4 Peter Leow 110
0 Sergey Alexandrovich Kryukov 6,953
1 OriginalGriff 6,311
2 Maciej Los 2,732
3 Peter Leow 2,694
4 Abhinav S 2,652

Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100