Wojjie is correct, d'Anconia. In order for a div to be centered upon the page it has to have a specific width. Think about it this way, say you are a browser and someone tells you hey I want to put auto margins on the sides of this div, meaning they equal on both sides, and have 0 margins on the top and bottom. You say ok, I can do that! But then you realize, how can I make the margins equal on either side of the div if I don't know the width of the div? If the browser doesn't have a number to start with and subtract the difference from the total width of the user's browser then there is no way to find out how to make the margins equal on the sides. Does that make sense??
Also, it doesn't have to be 50em. It can be any width that you want and in any form-percent, em, px. That is entirely up to you.
Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
I always recommend the HEAD First series of books for learning a new coding language. ^_^
Last edited by Chris Hick; 04-28-2011 at 05:36 PM..