Centering on a Label Web Control in ASP.NET from the IDE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Todd

    Centering on a Label Web Control in ASP.NET from the IDE

    I am adding a Label server control to an ASPX page using the .NET IDE. I
    can't
    figure out how to center it automatically. I know you can do it by editing
    the html and making it:

    <asp:Label id="Label1" style="TEXT-ALIGN: center"
    runat="server"> Label</asp:Label>

    Is it possible to do this from the Properties?

    Thanks in advance,

    --

    Thanks in advance,

    Todd
  • Cor Ligthert

    #2
    Re: Centering on a Label Web Control in ASP.NET from the IDE

    Todd,

    Using attributes you can add every piece of html (or script) as you wish to
    a server side control


    I hope this helps?

    Cor

    "Todd" <Todd@discussio ns.microsoft.co m> .[color=blue]
    >I am adding a Label server control to an ASPX page using the .NET IDE. I
    > can't
    > figure out how to center it automatically. I know you can do it by
    > editing
    > the html and making it:
    >
    > <asp:Label id="Label1" style="TEXT-ALIGN: center"
    > runat="server"> Label</asp:Label>
    >
    > Is it possible to do this from the Properties?
    >
    > Thanks in advance,
    >
    > --
    >
    > Thanks in advance,
    >
    > Todd[/color]


    Comment

    • Cor Ligthert

      #3
      Re: Centering on a Label Web Control in ASP.NET from the IDE

      Todd,

      Using attributes you can add every piece of html (or script) as you wish to
      a server side control


      I hope this helps?

      Cor

      "Todd" <Todd@discussio ns.microsoft.co m> .[color=blue]
      >I am adding a Label server control to an ASPX page using the .NET IDE. I
      > can't
      > figure out how to center it automatically. I know you can do it by
      > editing
      > the html and making it:
      >
      > <asp:Label id="Label1" style="TEXT-ALIGN: center"
      > runat="server"> Label</asp:Label>
      >
      > Is it possible to do this from the Properties?
      >
      > Thanks in advance,
      >
      > --
      >
      > Thanks in advance,
      >
      > Todd[/color]


      Comment

      Working...