margin property can be
This horizontally centers an element.
right margins are auto calculated
by equally splitting the remaining space.
margin-left is set to auto,
the remaining space is assigned to left margin
and hence the element aligns to the right.
margin-right is set to auto,
the element aligns to the left.