This is what i use very often:
And with the css to align the container in the middle:
margin: 0px auto;
If your div, which you want to center, has no width, it’s almost impossible to align it in the middle of the screen. This is a good way to center your div. For the div’s (header, section, footer) inside the wrapper, just use float.
Hope this is helpfull to you.