Thin White Border on Recent Posts Featured Images

  • Author
    Posts
  • #164005

    marchzone
    Member
    Original poster

    Hi,

    Would like to ask if it is possible to add a thin white (or any colour) border on all recent posts’ featured image via Additional CSS? Want to give some rooms between images as they are not packing close to each other.

    Thanks so much for this. :)

    The blog I need help with is: kidultdaddy.com

    #164048

    sakinshrestha
    Theme Author

    Hi,

    Yes, you can add the following CSS:

    .archive-post-wrap .hentry .post-thumbnail {
        border: 1px solid #f7f7f7;
    }

    Regards,
    Sakin

    #164053

    marchzone
    Member
    Original poster

    Hi Sakin,

    Thanks so much for this. It works.

    A follow up question for layout consistency – Want to check if this can also be applied to the featured post session & the first post of recent posts (i.e. those with comparatively larger featured images).

    Thanks again for your help.

    Regards.

    #164055

    sakinshrestha
    Theme Author

    Hi,

    You you want to change that to first post and also featured post then replace the previous CSS with the following CSS:

    .section-content-wrap .hentry .post-thumbnail {
        border: 1px solid #f7f7f7;
    }

    Note: Featured post has a white background. So, the white border might not be visible that much.

    Regards,
    Sakin

The topic ‘Thin White Border on Recent Posts Featured Images’ is closed to new replies.