title: How to center align the actual TextBox in Asp.net website
body: <p>I have the following HTML/ASP code I want to center the TextBox on the display page. I am attaching my code below. Preferably I want to see the label beside the Textbox once it is in the center. </p>
  
  <pre><code> &lt;center&gt;  &lt;div class="container"  id="TextBox4" runat="server" width="181px"   bordercolor="Black" borderstyle="Solid"&gt;
      &lt;div class="row"&gt;
        &lt;div class='col-sm-6'&gt;
          &lt;div class="form-group"&gt;
            &lt;div class='input-group date' id='datetimepicker1'&gt;
           &lt;p style="color: #000000; font-weight: bold; "&gt; START DATE AND TIME&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;asp:TextBox ID="Tb4" runat="server" CssClass="form-control" Width="374px" style="text-align: center"&gt;
              &lt;/asp:TextBox&gt;&lt;/p&gt;   
              &lt;span class="input-group-addon"&gt;
                          &lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt;
              &lt;/span&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;script type="text/javascript"&gt;
            $(function () {
                $('#datetimepicker1').datetimepicker();
            });
        &lt;/script&gt;
      &lt;/div&gt;
    &lt;/div&gt;&lt;/center&gt;
  </code></pre>