Horizontally And Vertically - Center elements horizontally and vertically. Horizontally And Vertically - Setting the width of the element will prevent it from stretching out to the edges of its.