DISQUS

baratunde.com: Wordpress is forcing text to wrap around image. Help!

  • Kenya · 1 year ago
    Check your stylesheet to see if it is doing a "float: left" on the images.
  • Jeff Greco · 1 year ago
    Hey Baratunde -

    It's in your CSS, get rid of the float:left in this line:
    .PostContent img { margin: 0px 10px 10px 0px; float: left; border:solid 1px #495b6b;}
  • baratunde · 1 year ago
    greco. thanks! solved
  • Cecily Walker · 1 year ago
    Without actually seeing the code, I think it's the size of the photo and the width of the content column in the theme.
  • baratunde · 1 year ago
    ah but it works fine on this other blog here with the same html

    http://baratunde.com/blog/archives/2008/06/head...
  • Cecily Walker · 1 year ago
    I replied on friendfeed but I'll try again here. :) Try adding a line break tag after the photo, or enclosing the text in a paragraph tag.
  • Cody McKibben · 1 year ago
    You could also clear the postmeta (in your template, single.php and maybe index.php, after the titles and meta info, but before the content) with <div class="clear"></div>
  • wil reynolds · 1 year ago
    AHHH This was bothering me LIKE MAD!! Thanks for posting.
  • tonya · 1 year ago
    TY that worked! I was looking for 2 days and this post here finally helped. It was in my style.css i had to change according to what Jeff Greco said, thanks!