Viewing 6 replies - 1 through 6 (of 6 total)
  • #page {
        margin: 0 0 0 10px;
    }

    That means that the top, right, and bottom margins are 0 and the left margin is 10px, which is how it is displaying. Doesn’t seem like it was ever centered.

    p.s. those margin attributes are also in your stylesheet twice.

    Thread Starter eventors

    (@eventors)

    Thanks for your quick response,
    I am new at this, so can you please explain exactly where to locate code so I can put in new dimensions?
    I appreciate your help.
    JB

    It’s in style.css in your active theme folder. You can get to it via Appearance > Editor in wp-admin or you can use FTP to edit the file and upload it. I believe…

    #page {
        margin: 0 auto;
    }

    Would work. That should set the top margin to zero and everything else to “auto”.

    Thread Starter eventors

    (@eventors)

    Jonas,
    That worked! But please check the site: https://www.withlacoocheegulfpreserve.com
    The full width may create problems in different browsers?
    Rather than auto, how can I center to set width?
    here is existing code before your suggested modification:
    #page {
    width: 830px;
    padding: 0px;

    margin: 0px; margin-left: 10px;

    }
    I assume that I replace margin-left with margin-center
    But, can I set width?
    Thanks, JB

    Thread Starter eventors

    (@eventors)

    I am trying to figure out how to reduce background green while still keeping the photo size.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Off Center Site’ is closed to new replies.