How to Center Asp MVC Table Objects?
<p>So I've got a list of objects based of the table view built into aspmvc and.. it looks like this.<a href="https://i.stack.imgur.com/oUu5M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oUu5M.png" alt="enter image description here"></a></p>

<p>Problem is, I'd like all the elements to be aligned in the center. The code is pretty generic, literally the generated code I believe.</p>

<pre><code>&lt;table class="table"&gt;
    &lt;tr&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_EmailAddress)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_FirstName)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_LastName)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CellNumber)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyName)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyAddress)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyState)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyZip)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyPhone)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyWebsite)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_WorkTravelRange)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyCostCode)
        &lt;/th&gt;
        &lt;th&gt;
            @Html.DisplayNameFor(model =&gt; model.m_CompanyAccountType)
        &lt;/th&gt;
        &lt;th&gt;&lt;/th&gt;
    &lt;/tr&gt;

@foreach (var item in Model) {
    &lt;tr&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_EmailAddress)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_FirstName)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_LastName)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CellNumber)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyName)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyAddress)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyState)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyZip)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyPhone)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyWebsite)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_WorkTravelRange)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyCostCode)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.m_CompanyAccountType)
        &lt;/td&gt;
        @*&lt;td&gt;
            @Html.ActionLink("Edit", "Edit", new { id=item.m_IdentityCode }) |
            @Html.ActionLink("Details", "Details", new { id=item.m_IdentityCode }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.m_IdentityCode })
        &lt;/td&gt;*@
</code></pre>

<p>My instincts tell me to..</p>

<pre><code>&lt;table class = "table" align = "center"&gt;
</code></pre>

<p>But to to avail.</p>

<p>Could some one point me in the right direction? Please and thank you.</p>

<p>Edit:</p>

<p>I tried <code>&lt;th text-align: center&gt;</code> but it still looks aligned left.</p>

<p><a href="https://i.stack.imgur.com/xtDZm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xtDZm.png" alt="enter image description here"></a></p>