title: Centering a spinner within a div
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.templateCard {
    width: 136px;
    height: 260px;
    display: inline-block;
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 10px;
  }
  #spinner {
    margin: auto;
    width: 20px;
    height: 20px;
    border: solid black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="card01" class="thumbnail templateCard"&gt;
    &lt;div id="spinner" class="ms-Spinner"&gt;&lt;/div&gt;
    &lt;img src="/Content/img/template01.png" alt="..."&gt;
    &lt;div class="caption"&gt;
      &lt;h3&gt;Rapport 1&lt;/h3&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have this piece of code. I want the spinner-div to be centered both horizontally and vertically in the card01 div. I can only manage to center it horizontally. It seems like the problem is the two other <code>div</code>s inside the <code>card01-div</code>, as i can center the spinner in another empty <code>div</code> (but not in this div container two additional <code>div</code>s).</p>
  
  <p>So I want the spinner to overlay the other content in <code>card01</code>.</p>
  
  <p><strong>EDIT:</strong> and also, the <code>card01-div</code> must not resize when the spinner appears!</p>