how to make elements in a div horizontally centered code example Example: how to get my div to centre .div{margin: 0 auto;}