Center align in Viewport via CSS. Black box is absolute positioned with left and top to 50% and margin-top and margin-left set to half of its height and width respectively.