Title: centering the header image
Last modified: August 19, 2016

---

# centering the header image

 *  [becauseitisthere](https://wordpress.org/support/users/becauseitisthere/)
 * (@becauseitisthere)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/)
 * Hi, I’m looking to center my header image. Any ideas/help?
 * [http://www.becauseitisthere.co.uk](http://www.becauseitisthere.co.uk)

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212077)
 * look in your theme’s `style.css` – back it up 1st! – for
 *     ```
       /* header area */
   
       #header {
   
       	width: 900px;
   
       	height: 350px;
   
               padding-top: 50px;
   
       	position: relative;
   
       border:none;
   
       }
   
       #headerlogo {
   
       	margin: -350px 0px 0px 15px;
       ```
   
 * you will likely want `position:` to be “float” instead of “relative” and will
   want to play with margins
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212096)
 * Is float a valid value for position?..
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212097)
 * > Is float a valid value for position?..
 * no surely not – in a hurry – “relative” is what you want
 *  Thread Starter [becauseitisthere](https://wordpress.org/support/users/becauseitisthere/)
 * (@becauseitisthere)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212153)
 * That hasn’t really done much to be honest… Any suggestions. Changing the #headerlogo
   numbers moved the text not the image
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212182)
 * The image in the header is 950px (plus border) = 952px…
 * This looks good on my screen (change or add where appropriate in your stylesheet).
 *     ```
       #header {margin:0 auto!important;width:952px;overflow:hidden}
       #suckerfishnav {width:100%;}
       ```
   
 * NOTE: You have 2 defintions for #header in your stylesheet, move the border style
   from the second into the first, then delete the second..

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

The topic ‘centering the header image’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/centering-the-header-image/#post-1212182)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
