WordPress.org

Support

Support » How-To and Troubleshooting » Trouble centering box on page

Trouble centering box on page

  • I must have changed one small thing and I have no idea what I did… I’m trying to center the box in the middle of my webpage but I can’t get it to work for the life of me. (www.designmeasurechange.com) Any suggestions on what I’ve done wrong here?

Viewing 5 replies - 1 through 5 (of 5 total)
  • hmmm there is a </div> to much.

    Try to search for something like this markup in your header.php

    </div> <div id="container">
    <div class="content_top"></div>
    <div class="content_center">

    and remove the </div> before <div id="container"> and than have a try if it works for you 🙂

    Really appreciate the help with this… I don’t have anything like this under header.php but I do have something similar in index.php and single.php. Both of them read the following
    <body>
    <div id=”wrapper”>
    <?php include (TEMPLATEPATH . “/banner.php”); ?>
    <div id=”container”>
    <div class=”content_top”></div>
    <div class=”content_center”>
    I don’t see any extra </div> included… Any ideas?

    The extra </div> seems to be in your banner.php :/

    yes! yes! yes! You are a genius!! Thank you sooooo much!! I’m very impressed….

    Your welcome 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trouble centering box on page’ is closed to new replies.