Site logo

Archived topic

Make Custom Excerpt Align With Right Side Of Featured Image

7 replies · Started by Michelle on October 18, 2021

Viewing posts 1–8 of 8

The custom excerpt text on my homepage post goes further to the right than the featured image. How can I make the text align under the image (on the right side)?

I don't want the text to run into the gap that divides my two columns.

All of my featured images are 900px wide.

Hi there,

I believe this is for the WPSP list on the home page?

If that's the case, try adding this CSS:

section#wpsp-3004 .wp-show-posts-image.wpsp-image-left img {
    width: 100%;
    height: auto;
}

section#wpsp-3004 .wp-show-posts-image.wpsp-image-left {
    margin-right: 0;
    float: none;
}

Yes, it's WPSP, but that didn't work, for some reason.

Ah, it's likely losing in precedence again.

Try this one:

section#wpsp-3004 .wp-show-posts-image img {
    width: 100% !important;
    height: auto !important;
}

section#wpsp-3004 .wp-show-posts-image {
    margin-right: 0 !important;
    float: none !important;
}

Still no...

Thank you, Elvin!

No problem. :D

This archived topic is closed to new replies.