in the body tag in css, set the text-align to center, then set the div container containing your layout text align to left, so the text wont be centered.
http://flumpcakes.co.uk/css/center-div-ie - this is a great example to show how to do that, hope that solved your problem
I have the solution in my css file, but I do not have access to it at this moment (posting from wii). But when I get a chance I will post it here.
You can try (for your containing div): <div style="margin-left:auto;margin-right:auto;display:block;"> <!--Content--> </div> HTML:
If margin: 0 auto; on the outermost container of your website doesn't work, there's something else wrong, because it works everywhere (except IE5.5 and under, or IE6 and possibly 7 in Quirks mode, so you'd better have a doctype). One reason it might not be working is because there needs to be a width defined. It can be in a % if need be, but without a width a browser can't calculate how to center the thing. You should show some code... The top of your HTML (to see your doctype and whether there's space or anything before it, which sux0rs for IE), the main outermost container (and nothing inside that container should be wider!!), and your relevant css. The text-align: center thing was the only way to center blocks (incorrectly) in the old IE's and, like I said, IE's in Quirks mode (no or bad doctype). So really, you don't even need the text-align: center on the body element unless you've got a client with IE5.5 you've got to support.
sorry i forgot about that, but this is what i have in my code to center my site. #container { position: relative; left: 50%; margin-left: -400px; /* half the width of the div */ background: #212121; width: 800px; height: auto; } Code (markup): just edit the width of the div to the width of your site, and the margin-left to the negative width of half of your div (example, your site is 550 px wide, you would set width to 550, and margin left to -275) this container div is around the entire site. it is the very first thing within the <body> tags on all my pages. it centers my site just fine, but does not center the text inside it (unless i set the text to center) hope this helps :S