As you can see, it's fairly little code which you need to use to auto-center a design. I've added alittle extra code to make things easier to read here on the test-page. What you need to concentrate about is the code which has comments added to them. in example: /* Defining background-color of <body> */