Centering Post Image

Welcome! Support WP-Drudge Customization Centering Post Image

This topic contains 6 replies, has 2 voices, and was last updated by  Gene 5 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Gene

    Trying to center the featured image for a post with the code found on http://wpdrudge.com/docs/customization-using-additional-css page.

    Neither of these work for me:

    .link-col .image-wrap {margin: 6px auto;}

    .posts-list img {margin: 6px auto; display: block;}

    PROPER Web

    Gene,

    Try:

    .posts-list li.the-content .image-wrap {margin-left: auto; margin-right: auto}

    Gene

    Had no effect on the feature image that appears below the link.

    PROPER Web

    Can you post a link to an example?

    Gene

    http://www.digitalmarketerguide.com/

    bottom right. Slack logo. needs to center in the column, regardless of the view (desktop, tablet, mobile device, etc.)

    PROPER Web

    I don’t see the CSS I posted on your site so that might be a problem. If you add that and it’s still not working, let’s go more specific:

    .spacing-tight .posts-list li.the-content .image-wrap {margin-left: auto; margin-right: auto}

    Gene

    I tried the previous code with no success.

    The most recent suggestion seemed to work. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.