Wrapping a text around image (wordpress)

Sometimes, i was wondering why on some templates the “align to left” feature in the media-gallery did not affect the post entry. After some research i’ve found, that some css-style was missing. If you add following to your css-style:

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}

surrounding text will work. Don’t forget to insert the image at the top of your post, to let the text warp around the image.
(original, detailed description)

No Comments

Add Comment