how to get my div to centre of primary divs code example Example: how to get my div to centre of primary div .div{margin: 0 auto;}