[CLOSED] Hi how to align the label text to center?

  1. #1

    [CLOSED] Hi how to align the label text to center?

    Hi,

    Hi how to align the label text to center?See the sample,I want the label text to center of two buttons,but for the below sample text is coming to left side.

    For more inofrmation see the screen shot.

    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ScriptManager ID="scm" runat="server">
        </ext:ScriptManager>
        <ext:Panel Border="false" ID="Panel106" runat="server" Width="400" Height="35">
            <Body>
                <ext:ColumnLayout ID="ColumnLayout2" runat="server" FitHeight="false">
                    <ext:LayoutColumn>
                        <ext:Panel Border="false" ID="Panel9" runat="server" Width="30">
                            <Body>
                                <ext:Button ID="btnPrevious" runat="server" Text="<">
                                </ext:Button>
                            </Body>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    <ext:LayoutColumn ColumnWidth="1">
                        <ext:Panel Border="false" ID="Panel10" runat="server">
                            <Body>
                                <ext:Label ID="lblMsg" runat="server" Text="This Week">
                                </ext:Label>
                            </Body>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    <ext:LayoutColumn>
                        <ext:Panel Border="false" ID="Panel11" runat="server" Width="30">
                            <Body>
                                <ext:Button ID="btnNext" runat="server" Text=">">
                                </ext:Button>
                            </Body>
                        </ext:Panel>
                    </ext:LayoutColumn>
                </ext:ColumnLayout>
            </Body>
        </ext:Panel>
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] Hi how to align the label text to center?

    Hi,

    Wrap that label by CenterLayout

Similar Threads

  1. [CLOSED] Center align panel in container
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 04, 2012, 6:55 AM
  2. [CLOSED] Can't get buttons to align to center in html table
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 11, 2011, 4:50 PM
  3. how to align the Icon in GridCommand to center
    By harshad.jadhav in forum 1.x Help
    Replies: 0
    Last Post: Dec 30, 2010, 10:24 AM
  4. [CLOSED] Align Center in Panel
    By macap in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 30, 2009, 9:52 AM
  5. Align GridPanel Center. [BUG]
    By hugo.carvalho in forum 1.x Help
    Replies: 2
    Last Post: Aug 11, 2009, 10:26 AM

Posting Permissions