Results 1 to 2 of 2

Thread: How to get this to be CENTERED?

  1. #1
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool How to get this to be CENTERED?

    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
    Last edited by Haisook; 03-04-2006 at 11:30 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Get rid of these body declarations (red):

    Code:
    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):

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •