Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Trying to center image in image widget

Discussion in 'Misc WordPress Requests' started by Jacob Peattie, Feb 16, 2018.

  1. Jacob Peattie

    Guest

    Reply To: Trying to center image in image widget, by Jacob Peattie

    You don’t really need to vertically center it because it’s the only element in the box, what you need to do is remove the added spacing at the bottom of the image so that the padding in the box is the same on the top and bottom. It’s a small distinction but true vertical centering in CSS is a different topic altogether.

    But there isn’t anything you can add to the widget to do this, you’ll need to use the Additional CSS section of the customiser to do this. In that section add this CSS:


    .sidebar .widget_media_image .aligncenter {
    margin-bottom: 0;
    }

    Reply To: Trying to center image in image widget
     
    #1

Share This Page

Monarch Social Sharing Plugin