Support » Themes and Templates » thumbnail images and text in excerpts – twenty eleven

  • Resolved Elaine Griffin

    (@elaine-griffin)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘thumbnail images and text in excerpts – twenty eleven’ is closed to new replies.