Also, @jsutterfield, just to be thorough in my explanation, setting margin-left: auto and margin-right: auto will center a block element (given it isn't already floated left or right). The shorthand for this is margin: 0 auto;