WordPress.org

Ready to get started?Download WordPress

Forums

Centering Header Image in Melville Theme (5 posts)

  1. Gail
    Member
    Posted 1 year ago #

    I am trying to center the header image in my new theme and I am not having any luck at all. If someone wouldn't mind looking at it and giving me some idea of how to center it, I would be very grateful. Thank you!

    Dappled Things

  2. oxfordian3
    Member
    Posted 1 year ago #

    It looks like you have the Melville theme, but have replaced the default HTML text with an PNG containing graphic text and the accompanying image of the bug.

    It doesn't appear centered because the PNG itself is wider than the layout of the theme. The content area of the theme is 650px wide but your PNG (header.png) is 806px wide (where most of the width is just white space).

    Probably the simplest thing is to re-edit the PNG (in Photoshop, or however it was built), so that it 650px wide and centered. I'd guess you want the text centered and the bug image to appear to the right, as opposed to centering all the content (which would shift the text to the left). But regardless -- you need to replace the PNG with one that is 650px wide.

  3. Gail
    Member
    Posted 1 year ago #

    Oxfordian3,

    Thank you so much for your prompt and helpful reply! I fixed it, but I centered the entire image as opposed to off-setting things a bit to the right so that the text would appeared centered. What do you think of it now? Do you think that it would look better with the text looking centered still? I know it makes sense to have the text centered with the bug to the side, but I don't know how aesthetically pleasing it would be. I would appreciate you opinion. Thanks again!

  4. oxfordian3
    Member
    Posted 1 year ago #

    Now that I see it, I agree that it looks good as you now have it, with the whole content (text and image) centered, since the bug image integrates with the text like an inline element. Good job.

  5. Gail
    Member
    Posted 1 year ago #

    Thank you so much! I can't thank you enough. I am so indecisive at times and it helps to have a second set of eyes and a second opinion. :)

Topic Closed

This topic has been closed to new replies.

About this Topic