маржа на абсолютном расположенном элементе

#absolute-element{
	position: absolute;
    inset: 0 /*also same as left, right, top & bottom set to 0*/
    margin: auto;
 }
 
 /* Can still overide it with left, right, top & bottom*/
Donald Abua