Forums

Entire Web Site won't center (3 posts)

  1. BlaqueSaber
    Member
    Posted 2 years ago #

    I've searched the forum posts and it looks as if each template needs to be centered invdividualy so I'm posting this hoping for a bit of help. I would just like the entire web page to center when loaded in the page. Is that possible?

    http://palbrigade.wordpress.com/

  2. jonimueller
    Member
    Posted 2 years ago #

    You're going to have to put the entire thing in a wrapper division:

    <div id="wrapper">
    blog contents here
    </div><!-- /wrapper -->

    So the first part (<div id="wrapper">) goes in your header.php file right below the body tag.

    The closing tag (</div><!-- /wrapper -->) goes right above the closing body tag.

    And in your stylesheet add this:

    #wrapper {
       margin: 0 auto;
       width:  [[You'll have to decide on a fixed width based on your content and sidebar widths combined, expressed in px]];
    }
  3. BlaqueSaber
    Member
    Posted 2 years ago #

    Thank you very much for taking the time to respond. I'll work on this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags