WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme development problem with page alignment (4 posts)

  1. hortonsart
    Member
    Posted 2 years ago #

    I'm creating my own theme, using Starkers as the "wireframe", and my home/blog page is set up and working fine. I'm editing the rest of my php files at the moment, but for some reason all the pages that I create are aligning to the left even though my blog/home page is centered.

    http://hortons-art.com

    If you click on the about page and then on the home page you'll see what I mean. Any help would be greatly appreciated!

    Thanks in Advance,

    Fletcher Horton

  2. flamenco
    Member
    Posted 2 years ago #

    Hi,
    I see the direct cause.... your about page has the .page class in your first line of HTML.

    <body class="page page-id-328 page-template-default">

    The .page class floats left, as you can see in your CSS code:

    .post, .page {
      float: left;
      padding: 10px 10px 25px;
      width: 730px;
    }

    Last tip... validate your HTML, you have some errors in it.

    Good luck, Dave

  3. hortonsart
    Member
    Posted 2 years ago #

    Thanks a bunch Dave!...I knew it was going to be something simple that I had just overlooked.

  4. flamenco
    Member
    Posted 2 years ago #

    Good for you creating your own theme! You're a cut above the rest!

Topic Closed

This topic has been closed to new replies.

About this Topic