How can margins be used to center an element horizontally on the page? code example Example: how to get my div to centre .div{margin: 0 auto;}