title: How to center one div in form
body: <p>I work on C# Asp.net</p>
  
  <p>Main div
  ---- table </p>
  
  <p>want to show this div on middle of the form.i want to build a login form.my table contain</p>
  
  <pre><code>User name:**(it's a lable,on browser it's broken like user
                                                         name : show why?)**
  password:
  
  &lt;div id="main"&gt;
  
  &lt;table width="600px" border="1"&gt;
              &lt;tr&gt;
                  &lt;td&gt;
  &lt;asp:Label ID="Label1" runat="server" CssClass="cssLabel" Text="User Name :"&gt;&lt;/asp:Label&gt;
                  &lt;/td&gt;
  
  
                  &lt;td&gt;
   &lt;asp:Label ID="Label2" runat="server" CssClass="cssLabel" Text="Password :"&gt;&lt;/asp:Label&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>want to show div on middle of the form? and why my lable text are going to broken how to solve it?</strong> </p>
  
  <p>if u gone to google.com than you see text box take position on middle of the frame.i want this .i want my controls also take position on the middle of the frame.How to do that?</p>