Menu
Does anyone have any suggestions on how to center the body of a website horizontally and automatically so it stays centered even with a browser resize?
I have been doing this:
[CODE]
body{margin: 0 auto 0 auto;}
However, that has been causing problems with my Google Ads in IE7, so I want to get away from it.
I would prefer to use this for my body tag to solve my Google Ads problem:
[CODE]
body{margin: 0;}
However, that clearly does not automatically center the website horizontally. How can I keep the margin: 0; setting but still automatically center my website?
Thanks in advance!