You don't use the bgcolor attribute at all, use CSS instead. Like this:
That goes between <head> and </head>.
As to your centering issue. Try wrapping everything in a class which you call "center". Like this:
margin: 0 auto;
Doesn't necessarily have to be 400 px just an example.