Click here to Skip to main content
13,139,569 members (49,976 online)
Rate this:
Please Sign up or sign in to vote.
See more:
<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 1: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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
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