Can't center webpage in IE browser window
Hello. Using the most recent versions of web browsers...
Firefox: Ver. 22.0
Google Chrome: Ver. 27.0
Opera: Ver. 12.15
Safari: Ver. 5.17
IE: Ver. 10.0
Using CSS, the first page of my website (not online yet), index.html, DOES center correctly within the browser's window. But when using IE versions 8.0 and 9.0 (and I suspect older versions of IE and perhaps some older versions
of the browsers above too), the webpage is not centered.
Here's a snippet of the CSS code I used which I found on the web...
<!-- /* add HTML comment to protect older browsers */
margin: 0px auto;
text-align: center; /* added as margin code not recognized by IE5.0 */
blah, blah, blah (I used tables for the webpage)
I even removed the comment above within CSS section but that did not change anything. And also note that a previous index.html page I was using (pure HTML) did center the page within all browsers both old and new, as I used align="center" code in tables, iframes, etc. But I want to use CSS now as it is the way to go these days.
QUESTION: What coding can I add or change in the CSS above to fix this problem with older browsers?
Thanks for any help. I'm thinking there is a simple solution to this problem.