• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Header Alignment

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Header Alignment

This topic is: not resolved

Tagged: header align top

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 3 months ago by Amesbury.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 22, 2013 at 9:55 am #30449
    Amesbury
    Member

    I am just building my site and my header image is not centered. It's aligned with the top of the page for some reason. I followed the same size as requested.

    How do I get it to lie in the center?

    http://www.daybluedesigns.com/newsite

    March 22, 2013 at 11:32 am #30478
    Charlie
    Member

    OK I think I've got this. There's a few changes to make to your stylesheet.

    We're going to move the logo background image down by 27px using absolute positioning:

    #header {
        background: url("http://daybluedesigns.com/newsite/wp-content/uploads/2013/03/header1.png") no-repeat scroll center 27px transparent;
    }

    Then we're going to increase the min-height of the header to accommodate the size of the image:

    #header {
        margin: 0 auto;
        min-height: 167px;
        width: 1140px;
    }

    That's it!

    April 2, 2013 at 9:44 am #32648
    Amesbury
    Member

    Thanks Charlie!

    I get what we're doing, but where does the first piece of code go? Is it replacing this:
    #wrap {
    background: url(images/bg-header.jpg) repeat-x top;
    margin: 0;
    padding: 0;
    }

    or going in as new content?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble