WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I center my header image?

[Resolved] How do I center my header image?

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • change

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

    to

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

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

    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;
    
    	}

    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 🙂

    thanks a lot guys! I figured it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] How do I center my header image?’ is closed to new replies.