You also might want to take a look at Centering and Centering (one more time) for a little help on the code
you could either put align="center" in the table code right after cellspacing="0", or you could put <center> </center> around the whole script.
Not recommended - they may work in Transitional DOCTYPEs, but they're deprecated (rendered obsolete, and slated for removal) in Strict DOCTYPEs.
Or try using a wrapper div and setting the width and margins as Dan describes. Worth checking this in a variety of browsers to ensure consistent behavior.
Don't need a wrapper DIV unless you're going to support IE 5.x (at which point you might as well set text-align: center; on the body selector and then text-align: left; on the wrapper).
before this div tag <div class="post" id="post-<?php the_ID(); ?>"> put another div tag like this <div id="align"> <div class="post" id="post-<?php the_ID(); ?>"> now for id="align " put this style on the stylesheet file !! #align { margin:0px auto; } It will be centered....!! regards, website designer
can do one better - add this to your CSS .post, .navigation { margin:0 auto; } That's it. You have two outermost containers (at least before the else - AFTER already looks to be centered) so just apply the centering margins (and your widths if not present) to those two and you should be good to go. Though... do you mean center the boxes, or center the content inside their boxes? If the latter, you'd want: .post td { text-align:center; } But I don't think that's what you are asking for.