how to center a page horizontally in html code example Example: how to get my div to centre .div{margin: 0 auto;}