Title: Remove header padding/margin on sides
Last modified: August 20, 2016

---

# Remove header padding/margin on sides

 *  Resolved [christoofer](https://wordpress.org/support/users/christoofer/)
 * (@christoofer)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/)
 * Hey, I am using the Twenty-Eleven template. I have deleted all of the header 
   content and am trying to replace it with an image with a black div background.
 * Ive gotten everything figured out except I can’t remove the padding or margins
   or whatever it is on either side of it.
 * If anyone would like to see the code just specify which and I’ll be happy to 
   post.
 * Thank you, Chris

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/#post-2996833)
 * Are you using a Child Theme?
 *  Thread Starter [christoofer](https://wordpress.org/support/users/christoofer/)
 * (@christoofer)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/#post-2996835)
 * Honestly not entirely sure what that means. I am using the Twenty-Eleven template
   that WordPress comes set to by default. So I would assume the answer to your 
   question is no.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/#post-2996836)
 * strongly consider to create a child theme to work with:
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * it is not recommended to edit the default theme Twenty Eleven directly, as an
   unedited default is needed in case of probems.
 * here is your padding:
 *     ```
       /* =Structure
       ----------------------------------------------- */
   
       body {
       	padding: 0 2em;
       }
       ```
   
 *  Thread Starter [christoofer](https://wordpress.org/support/users/christoofer/)
 * (@christoofer)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/#post-2996837)
 * Thank you very much.
 * As for the child theme, I had been unaware of that up until this point. I understand
   what you are referring to as the benefits of it though. I will remember that 
   in the future.
 * Once again, thank you alchymyth.

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

The topic ‘Remove header padding/margin on sides’ is closed to new replies.

## Tags

 * [Blank](https://wordpress.org/support/topic-tag/blank/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [margins](https://wordpress.org/support/topic-tag/margins/)
 * [padding](https://wordpress.org/support/topic-tag/padding/)
 * [side](https://wordpress.org/support/topic-tag/side/)
 * [zero](https://wordpress.org/support/topic-tag/zero/)

 * 4 replies
 * 3 participants
 * Last reply from: [christoofer](https://wordpress.org/support/users/christoofer/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/remove-header-paddingmargin-on-sides/#post-2996837)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
