.mx_CompatibilityPage { width: 100%; height: 100%; background-color: #e55; } .mx_CompatibilityPage_box { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 500px; height: 300px; border: 1px solid; padding: 10px; background-color: #fcc; }