Support » Themes and Templates » How do I center align my entire blog?

  • the header, footer and index, i mean.
    I know this is kind of simple but I can’t figure out the default theme structure.
    please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The simplest way is this :
    add a new DIV to your layout , called container, like so :

    <body>
      <div id="container">
        ...entire layout goes here...
      </div>
    </body>

    Than add this to CSS :

    body {
      text-align: center;
      }
    #container {
      margin: 0 auto;
      width: PutNumberOfPixels px;
      text-align: left;
      }

    or this :

    body {
      text-align: center;
      }
    #container {
      margin-left: 15%;
      margin-right: 15%;
      text-align: left;
      }

    Where do you put both of these codes? Does the first go in the php page or somewhere in the Theme Options?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I center align my entire blog?’ is closed to new replies.