Center your website in the: <div align="center"> <body> site stuff here </body> </div> Code (markup):
<center> <body> </body> <center> It is the same, but that should work or you have done something wrong.
Centering a single HTML page can be as simple as the previous posters have suggested or it can be problematic depending on just how simple/complex your site is. For instance, if your site is a framed site, then the <center> tag may not work as you'll need to go in and tweak a couple of places. I-Frames can be yet another problem area and Tables seem to be the most bothersome for the uninitiated. Might I suggest that you post a link to your site and allow us to see the source? We might be able to better help you center it.
I prefer using CSS. #wrapper { margin: 0 auto; } Code (markup): <!DOCTYPE ... > <html> <head> ... </head> <body> <div id="wrapper"> ... </div> </body> </html> Code (markup):
it's better to text-align:center the body and then text-align:left the wrapper, so it'll work in most (or all) of the browsers.
I just use 1 table with everything inside it and then just use this code in the table tag align="center"
I would include that text-align: center; in another file that only gets included for IE 6 (or any other browser that messes it up).