WordPress.org

Support

Support » Themes and Templates » [Resolved] Centering Header Image

[Resolved] Centering Header Image

  • Here is the code I’ve used:
    <html>
    <head>

    <style type=”text/css”>
    body
    {
    background-image: url(‘http://katemclaughlinpoetry.katemclaughlin.net/wp-content/uploads/2009/04/grassy-header.jpg’);
    background-repeat: no-repeat
    }
    </style>

    </head>

    <body>
    </body>
    </html>
    Here is what my header looks like: http://www.katemclaughlinpoetry.com/

    I want to center the image.
    How?

Viewing 3 replies - 1 through 3 (of 3 total)
  • background-image: url(‘http://katemclaughlinpoetry.katemclaughlin.net/wp-content/uploads/2009/04/grassy-header.jpg’) center;

    that is what you need to center the image.

    this didn’t work. When I add – center; – as you suggest the header image disappears.

    Experimented again…
    This worked:
    background-image: url(‘http://katemclaughlinpoetry.katemclaughlin.net/wp-content/uploads/2009/04/grassy-header.jpg’);
    background-repeat: no-repeat;
    background-position: top center

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Centering Header Image’ is closed to new replies.