html { body { height: 100%; } .table { display: table; width: 100%; height: 100%; } .table__cell { display: table-cell; vertical-align: middle; } img { display: block; max-width: 100%; margin: 0 auto; } }