How to Center in CSS (2015)
This is a straw man.<p>Today you can simply use flexbox on the container:<p><pre><code>  display: flex;
  justify-content: center; // horizontal
  align-items: center; // vertical
</code></pre>
Doesn't work in IE without a JS polyfill (which is available), but has worked in all other browsers for six years or so.