WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I center my header image? (6 posts)

  1. northstar1
    Member
    Posted 6 years ago #

    Hi, I'm using the default 1.6 theme and can't seem to get my header centered on the page. Can anyone tell me what the code would be?

    My site is here if you'd like to see the specific problem.

    Thanks!

  2. boober
    Member
    Posted 6 years ago #

    change

    #headerimg 	{ 
    
    	margin: 7px 9px 0; 
    
    	height: 206px; 
    
    	width: 740px; 
    
    	}

    to

    #headerimg 	{ 
    
    	margin: 7px 0; 
    
    	height: 206px; 
    
    	width: 740px; 
    
    	}
  3. northstar1
    Member
    Posted 6 years ago #

    hmm.. I made the change you suggested, but it didn't make any difference in the appearance. Any other ideas?

  4. boober
    Member
    Posted 6 years ago #

    wait, sorry, is that set as a background image? you may need to add this to your header style ! important
    like this

    #header {
    
    	background: #73a0c5 url('http://bethebigmanoncampus.com/blogbanner.jpg') no-repeat bottom center ! important;
    
    	}
  5. rhm94611
    Member
    Posted 6 years ago #

    You can correct it by editing your header image...

    I pulled the kubrick image and the actual graphic file size of it is 760 wide - so if you put a 10 pixel white band on the left side of your graphic file it will move it over..

    or try making the left margin 17px :)

  6. northstar1
    Member
    Posted 6 years ago #

    thanks a lot guys! I figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags