Title: Widgets padding/margin
Last modified: January 23, 2018

---

# Widgets padding/margin

 *  Resolved [freatz](https://wordpress.org/support/users/freatz/)
 * (@freatz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/)
 * Hi!
    I’d like to know if it is possible to get rid of the padding and margin 
   around the widgets? If I change the CSS (.widget), every widget is changed, including
   the 3 widgets in the Home page are affected. But I don’t want to change those.
   Is there a way to change this? Thank you!

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

 *  [sacredpath](https://wordpress.org/support/users/sacredpath/)
 * (@sacredpath)
 * Automattic Happiness Engineer
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9907543)
 * Hi, the following will do that and exclude the home page. This only applies to
   the sidebar widgets, not the footer widgets. I also included a declaration to
   remove the widget borders since with the padding gone, the text is right up against
   the border and readability suffers greatly.
 *     ```
       body:not(.home) .site-content #secondary .widget {
         padding: 0;
         border: none;
       }
       ```
   
 *  Thread Starter [freatz](https://wordpress.org/support/users/freatz/)
 * (@freatz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9915963)
 * Hi!
    It isn’t working 🙁
 *  [sacredpath](https://wordpress.org/support/users/sacredpath/)
 * (@sacredpath)
 * Automattic Happiness Engineer
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9919818)
 * Hmmm, without seeing your site, it is nearly impossible for me to tell since 
   I can’t see how you have your site configured, and it may very well be we need
   to adjust the CSS selectors used.
 *  Thread Starter [freatz](https://wordpress.org/support/users/freatz/)
 * (@freatz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9924718)
 * What worked was this:
 * .widget {
    border: none; font-size: 14px; font-size: 1.4rem; line-height: 2; 
   margin-bottom: 0; word-wrap: break-word; padding: 0; }
 * Thank you very much! I wouldn’t have founded if you didn’t give me that idea 
   🙂
 *  [sacredpath](https://wordpress.org/support/users/sacredpath/)
 * (@sacredpath)
 * Automattic Happiness Engineer
 * [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9927952)
 * You are welcome.

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

The topic ‘Widgets padding/margin’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/canape/1.0.6/screenshot.png)
 * Canape
 * [Support Threads](https://wordpress.org/support/theme/canape/)
 * [Active Topics](https://wordpress.org/support/theme/canape/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/canape/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/canape/reviews/)

## Tags

 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [padding](https://wordpress.org/support/topic-tag/padding/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 5 replies
 * 2 participants
 * Last reply from: [sacredpath](https://wordpress.org/support/users/sacredpath/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/widgets-padding-margin/#post-9927952)
 * Status: resolved