floating an image, text to the side, caption beneath
-
What is the best way to float an image left, have text in a paragraph to the side (not wrap) and add a styled caption? Oh, and the image is anchored (linked).
I had great luck styling my image tags with the class below until I wanted to do a styled caption.
.leaplimg {text-align: justify; float:left; margin-right: 1em; padding: 5px 0;}
I tried various tricks and finally settled on putting the above class on a div wrapped around the image and text.But it screws up the code below somehow… WP does weird things in its editors! I’m using the basic (not visual) default (tinymce I guess). Should I just put divs and p tags in every post and force things? Is there a page that really tells you what to do to get WP to predictably treat text?
- The topic ‘floating an image, text to the side, caption beneath’ is closed to new replies.