Lego2012
9/26/2016 - 8:19 PM

Centering a DIV with unknown width

Centering a DIV with unknown width

.content {
    margin: 0 auto 8px;
    display: table;
    }

.content div {
    display: table-cell;
    }

<!--[if IE]>
.content {
    display: block;
    text-align: center;
    }
.content div {
    display: inline;
    zoom: 1;
}
<![endif]-->