WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] thumbnail images and text in excerpts - twenty eleven (4 posts)

  1. Elaine Griffin
    Member
    Posted 1 year ago #

    Hello,
    I have enabled thumbnail images in my recent posts, but now I would like to float the recent post text to the right of the image, and I can't find any information about it. Any help would totally rock - thanks!
    URL: behavioralchild.com

  2. flashbuddy
    Member
    Posted 1 year ago #

    Better float the image left of the text. Find the ID or class of the image and add to your css:

    img.wp-post-image{
       float: left;
       margin: 5px 12px 0;
       border: 2px solid #0F869C;
    }

    That should look pretty nice.

  3. Digital Raindrops
    Member
    Posted 1 year ago #

    Hi Elaine,

    .wp-post-image {
       display: block;
       float: left;
       margin-right: 1em;
       margin-bottom: 1em;
    }

    The code and styles in my child theme might also help, there are a couple of different options using the post class, the archive.php one is the closes, it switches the images left and right.

    HTH

    David

  4. Elaine Griffin
    Member
    Posted 1 year ago #

    You guys are awesome! Thank you! I'm doing a combo of the codes. I knew it had to be something simple, but I just wasn't sure where to put it.
    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic