How Can I Put Bootstrap Modal in Horizontally center?
<p>I have a modal that I resize it.I want large width size of modal and horizontally centered.
In addition when I resize it to smaller it's correct.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>&lt;style&gt;
    #PopupModel   {width:60%;}

.modal {
}
.vertical-alignment-helper {
    display:table;
    height: 100%;
    width: 100%;
}
.vertical-align-center {
    /*/To center vertically*/ 
    display: table-cell;
    vertical-align: middle;
}
.modal-content {
     /*Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it*/ 
    width:inherit;
    height:inherit;
     /*To center horizontally*/ 
   
}

&lt;/style&gt;</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="modal fade" id="PopupModel" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel" &gt;
    &lt;div class="modal-dialog" role="document" &gt;
        &lt;div class="modal-content" &gt;    

            &lt;div class="modal-header"&gt;

                &lt;h4 class="modal-title" id="gridSystemModalLabel"&gt;Product Define&lt;/h4&gt;


            &lt;/div&gt;
            &lt;div class="modal-body" id="modelResult"&gt;
                &lt;br /&gt;
            &lt;/div&gt;


        &lt;/div&gt;&lt;!-- /.modal-content --&gt;
        &lt;div class="modal-footer"&gt;
            &lt;div class=""&gt;
                &lt;button type="submit" class="btn btn-primary" style="width: 100px; height: 38px;"&gt;save&lt;/button&gt;
                &lt;button type="button" class="btn" data-dismiss="modal" style="width: 70px;height: 38px; "&gt;cancel&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;&lt;!-- /.modal-dialog --&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p>I test some ways but not worked for me .any help ?</p>