Log in

View Full Version : How to get this to be CENTERED?



Haisook
03-04-2006, 09:40 PM
Here's my website:
http://dr-haisook.blogspot.com/

As you see, it's aligned to the left.
I want the content (outline) as a whole to be centered. Not the text though. The body only.

I use IE 6 (if that matters).

Thanks

jscheuer1
03-05-2006, 04:58 AM
Get rid of these body declarations (red):


body {
width: 552px;
margin: 20px auto;
font-family: lucida grande, verdana, arial, sans-serif;
text-align: center;
background: #FFFFFF;
color: #000000;
}

Add a wrapper division to the page (red):


<body><!-- -->
<div style="width:552px;margin:0 auto;">
page content here
</div>
</body>


Note: That's your existing body tag and empty comment, only the red part is added here and only the red part is removed from the style section at the top.