How to Center in CSS (2015)
This is a straw man.Today you can simply use flexbox on the container:  display: flex;
  justify-content: center; // horizontal
  align-items: center; // vertical

Doesn't work in IE without a JS polyfill (which is available), but has worked in all other browsers for six years or so.