Tag: CSS

  • Vertically aligning elements

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