How align div to center of page

.box-content{ margin: auto; top: 0; right: 0; bottom: 0; left: 0; position: absolute; width: 800px; height: 100px; background-color: green; } <div class=”box-content”> </div> Share This: