Home > ASP.NET > Make the ASP:Login control centre

Make the ASP:Login control centre

Following my previous post you cannot use “p” or “div” tags to align a ASP:Login control to the center of the page. So to get this done, you need to set the margin property of the control to “auto”.

<body>
    <form id="form1" runat="server">
<div>
        <asp :login runat="server" Style="margin:auto"></asp></div>
</form>
</body>

  1. locomotive
    February 25, 2010 at 5:15 am | #1

    That works and it’s elegant. Thanks!

  2. NJBrad
    March 23, 2010 at 10:08 am | #2

    BEAUTIFUL!!!!

    Just what I needed.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.