title: What is proper way to Center a Label element using CSS in a asp.net .master page
body: <p>I am trying to put together a asp.net webforms website for a church fellowship organization and I am having to learn to work with building this website from scratch using Visual Studio Express 2013 for Web's Empty asp.net Website Template and since I have never done websites before, I am having to search through the Internet for examples, most of my programming experience comes from C# and I just don't seem to be able to find a solution for this.</p>
  
  <p>Anyway my problem is that I can't figure out how to Center a asp.net Label on the SiteMasterPage.master</p>
  
  <pre><code>&lt;div class="header1"&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;h1 class="auto-style1"&gt;Calvary Christian FellowshipGA, Inc.&lt;/h1&gt;
    &lt;div style="align-items: center"&gt;
      &lt;asp:Label ID="Label1" runat="server" CssClass="ccfgaLabel" ForeColor="#0066FF" Text="Calvary Christian FellowshipGA, Inc."&gt;&lt;/asp:Label&gt;
    &lt;/div&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;p&gt;
      Informational Text here.
    &lt;/p&gt;
    &lt;br /&gt;
    &lt;p&gt;
      More Informational Text here.
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried a couple things the above being the latest, the only thing I've found that actually worked was to use:</p>
  
  <pre><code>&lt;center&gt;
    MY Label
  &lt;/center&gt;
  </code></pre>
  
  <p>the only issue with this use of 'center' is that I get the 'center' is deprecated warning.  I would like to be able to do this correctly, could someone give me some suggestions how to get this done.</p>
  
  <p>I tried the following from a .css file.</p>
  
  <pre><code>.ccfgaLabel
  {
      display: inline-block; 
      width: 230px;
      /*margin-left: 10px;*/
      margin-left: auto;
      margin-right: auto;
  }
  </code></pre>
  
  <p>The only thing that seemed to work in it were the </p>
  
  <pre><code>width: 230px; 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>margin-left: 10px;
  </code></pre>
  
  <p>I would like to set this up inside the css file since this is all gonna be on a MasterPage.</p>
  
  <p>*Edit:  I should point out that the only reason I decided to try a Label was that I wanted a Bordered and Shaded, Box aspect around the Text and I hadn't yet tried to see if bordering and shading was possible just around specific Text centered in the middle of the page.</p>