weird wrap issue
-
Ok, so I know CSS and HTML to a decent level.
I read the tutorials on image/text wrapping, as well as some others around the net (not codex domain)I have the required CSS in my themes style.css but I still have issues with this wrapping of text around an image.
I click add image –> click the image from my gallery, and select align left. The code I get is this:
[caption id="attachment_74" align="alignleft" width="257" caption="My Caption"]<img class="size-medium wp-image-74" title="imagetitle" src="http://imagesource" alt="My Caption" width="257" height="300" />[/caption](i changed some details above as the img src is long etc)
Image is displayed fine, and on the left. It will wrap text but only if I have all in one paragraph.
The moment I press return twice to put some nice spacing in my text, the text after the double space goes under the image, yet there is still plenty of room next to the image.So I tried doing my own CSS both in the style, then even tried some inline styling.
I used a simple div setup of float left, put the image in a floated left div (simple img no caption or anything else), then the text in a floated left div also.
The result was i couldn’t get the div the text was in to float next to the div the image was in unless I only had one word in the text div, then it did float next to the image div.I could of course set a width on the floated text div (total space minus image/div width) but then people increasing page sizes etc etc makes this a bad idea. Fixed widths have to be considered carefully.
So what am I doing wrong here?
The topic ‘weird wrap issue’ is closed to new replies.