Hi, I seem to be having problems centering a page using a DIV tag and CSS. The result is here: http://www.sentimentalweddings.com/indexy.html Here is the important excerpt, but I've attached both files just in case: CSS: body { font-size:12px; } #sWholeBody { margin:0 auto; text-align:center; } Code (markup): HTML: </head> <body> <div id="sWholeBody"> <div id="sHeader"> <div id="sLogo"> ... </div> <!-- End Page Content --> </body> Code (markup): Any thoughts? Thanks in advance, Brian
Whatever you are using margin: 0 auto; on has to have a width defined for it to be centered. Have you applied a width?