WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
[resolved] Header image won't center (14 posts)

  1. mommy2two
    Member
    Posted 1 year ago #

    I cannot get my header image to center on the page. I tried what the other person said on another post created about this topic but it did not work. Please help!

    Thanks

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Which thread?

  3. mommy2two
    Member
    Posted 1 year ago #

  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you link the site with the issue?

  5. mommy2two
    Member
    Posted 1 year ago #

    Yes, sorry. Site is http://www.poshfoodie.com

  6. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Use either a Child Theme or Custom CSS Manager plugin to hold your CSS modifications.

    Your image is too large to center.

  7. mommy2two
    Member
    Posted 1 year ago #

    So I can only center it if I shrink it down?

  8. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Yes, otherwise this'll happen http://snag.gy/jWB5r.jpg

  9. paul.a.cunn
    Member
    Posted 1 year ago #

    Just change "auto" to like 45% or something that. Should work the percentage is a percent of the browser window but its from the left edge of your image.

    site-title img {
    margin-left: 45%
    }
  10. mommy2two
    Member
    Posted 1 year ago #

    Ok, I will shrink it. What code did you use to get it how you have it now though?

    Thanks!

  11. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    I used Paul's code but with a full stop at the start.
    You cannot centre that image using margin: 0 auto;.

  12. mommy2two
    Member
    Posted 1 year ago #

    Got it! Thanks so much!!!!!

  13. leileisuu
    Member
    Posted 8 months ago #

    Does not work with my wordpress site... http://massagearahant.nl/wordpress/

    I set the margins on 100% now, but it does not float with the responsive theme.... Or is there any possibility to disable the responsive function?

    Thanks in advance!

  14. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 8 months ago #

    You need to create your own thread to discuss that.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic