« How To Earn Sneaky Commissions | Home | Clever Ways To Quote Statistics »

How To Make Text Wrap Around Images In Wordpress

By Tim Gross - Internet Business Blog |

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.  :-)

Topics: Cool Tools, Z Info | Trackback URL

Comments