Title: Image Padding on Widgets
Last modified: September 17, 2016

---

# Image Padding on Widgets

 *  Resolved [heinjonker](https://wordpress.org/support/users/heinjonker/)
 * (@heinjonker)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/image-padding-on-widgets/)
 * I’ve tried a few code variations to edit padding on images, but I can’t seem 
   to target Widget Images specifically. One this site, [http://www.gaucheair.com](http://www.gaucheair.com),
   I’ve added an Image Widget on the Sidebar and a few images on the Footer but 
   I’d like to tighten the Padding around the images. Any suggestions, please?

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

 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/image-padding-on-widgets/#post-8192548)
 * I don’t see a child theme, so hopefully you are using Jetpack’s Custom CSS option
   and not making any changes to the theme files. Otherwise your changes will be
   lost the next time you update the theme.
 * For the sidebar images, try adding these three CSS rules:
 *     ```
       .sidebar-primary .widget_image {
         padding: 0;
       }
       .sidebar-primary .widget_image .jetpack-image-container {
         line-height: 0
       }
       .sidebar-primary .widget_image img {
         margin: 0;
       }
       ```
   
 * Not sure what you want to do with the footer images.
 *  Thread Starter [heinjonker](https://wordpress.org/support/users/heinjonker/)
 * (@heinjonker)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/image-padding-on-widgets/#post-8192591)
 * Brilliant, that worked for the Sidebar Widget Images. What I want to achieve 
   with the footer Widget is adjust the padding around the images, or just adjust
   the height of the widget area. I’ve tried but I’m sure I’m missing something:
   .
   footer-widgets { padding: 10px 0; }
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/image-padding-on-widgets/#post-8194261)
 * This CSS should do the trick:
 *     ```
       .site-footer .sidebar-footer img {
         margin: 0;
       }
       ```
   

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

The topic ‘Image Padding on Widgets’ is closed to new replies.

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

 * 3 replies
 * 3 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/image-padding-on-widgets/#post-8194261)
 * Status: resolved