WordPress.org

Ready to get started?Download WordPress

Forums

Center my site in the browser (3 posts)

  1. Tharr
    Member
    Posted 6 months ago #

    I need to center my site. It is currently all the way to the left and I have tried everything from other posts with similar issues but it won't work for me. I'm obviously very new to wordpress and need help. Thank you in advance! site is proteinbycreate.com

  2. Christian1012
    Member
    Posted 6 months ago #

    You have assigned most of your elements absolute positions via inline css. Example:

    <div style="background-color: #cccccc; height: 200px; width: 1350px; position: absolute; <strong>top: 515px; left: 0px;</strong>"></div>

    You have to either
    1. Re-do the absolute postions (bad, but it will work).
    2. Remove the inline css and use percentages and negative margins to center the page (good).

  3. Tharr
    Member
    Posted 6 months ago #

    thank you for the prompt reply. If I do either of the options you outlined will it center the page in every browser? or will it be different for higher resolutions? Because right now it is perfect on a 15" monitor and fills the whole screen but on anything larger it is left justified.

Reply

You must log in to post.

About this Topic