Replace all your CSS with:


<style>
div { text_align: center; }
</style>

(And don't forget to put a DOCTYPE at the top of your page.)