Centering header image

  • daviddoria

    #5091

    Is there a way to center the header image if it is not the standard width?

    http://engineeringnotes.net/

    Mod

    Kenneth John Odle

    #30628

    Try

    .header-img {
    margin-left: auto;
    margin-right: auto;
    }

    I’m not at home, so I’m not sure of the exact code. Firebug will help you nail it down.

    daviddoria

    #30629

    After some fooling around this seems to work:

    .header-img {

    position: static;

    display: block;

    margin-left: auto;

    margin-right: auto;

    }

    Does that make sense?

    Josh

    #30630

    It looks to me that your header image is the exact width of your website. Is this what you are going for?

    EDIT: Sorry, I clicked the wrong link.

    Yeah, that looks good to me.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.