AB<div class ='center-div'></div> .center-div{ position:absolute; top:0; bottom:0; left:0; right:0; width:500px; height:500px; margin:auto; }Comment·Thread·Jan 6, 2017·1·Code contest: how to horizontally and vertically center that div?