Vertically aligning elements

For a long time I’ve always been using the following method of vertically aligning elements on a web page: .parent{ display: table; width: 100%; } .child{ display: table-cell; text-align: center; vertical-align: middle; } This method works good across all browsers and includes solid IE support down to IE7. The downfall of this particular method is […]