How To Make Text Wrap Around Images In WordPress

If your text isn’t “wrapping” around images in WordPress even when you tell it to when you add an image, it’s probably because the following code isn’t in your related style.css page of the WordPress theme you’re using.

Copy/Paste the following into the bottom of your stylesheet, it should fix it for you:

img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

Brought to you by the guy who just wasted half an hour trying to figure out why his text was no longer wrapping around images after changing themes.  :-)

Facebook Comments:

Leave A Reply (2 comments So Far)


  1. heidi
    454 days ago

    Thank you very much for this one!
    Hope this is the answer that I have been searching for. It really sucks when you are not familiar with css.


  2. Gayle
    218 days ago

    This solution worked perfectly! Now my posts and photos are seamlessly integrated! Thanks, Tim!