WordPress.org

Ready to get started?Download WordPress

Forums

How to center my image header (3 posts)

  1. chandimabandara
    Member
    Posted 11 months ago #

    Guys I have installed a responsive theme and now I want my header image to be at the center. currently its in the left

    here is my header code :
    }
    #header {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 0 12px 0;
    min-height: 80px;
    overflow: hidden;
    }
    #header h1, #header h2 {
    font-size: 44px;
    display: inline-block;
    line-height: 1;
    margin: 23px 0 0;

    what alterations should I make?

  2. MinHyeong Lim
    Member
    Posted 11 months ago #

    I do not know if the image in any location.
    but try code.

    #header {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 0 12px 0;
    min-height: 80px;
    overflow: hidden;
    text-align:center;
    }
  3. Andrew
    Forum Moderator
    Posted 11 months ago #

    @chandimabandara, Always include as much information as possible - At the moment you are asking volunteers to jump through too many loops.

Reply

You must log in to post.

About this Topic