WatCentering in CSS is a pain in the ass. There seems to be a gazillion ways to do it, depending on a variety of factors. This consolidates them and gives you the code you need for each situation. Select the type of content you want to center in a parent <div> and the size of the parent.
![How to Center in CSS](https://cdn-ak-scissors.b.st-hatena.com/image/square/b266eccdb4682545c0fe57de8e15cb011e2b7162/height=288;version=1;width=512/http%3A%2F%2Fhowtocenterincss.com%2Fimage_preview.png)