In this article, Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. The techniques works with percentage-based width/height, min-/max- width, images, position: fixed and even variable content heights. — Ed.
We've all seen margin: 0 auto; for horizontal centering, but margin: auto; has refused to work for vertical centering...... Read More