I want my image wrapping with text align like this
<html>
text text text text text <br>
text text text text text <br>
______________ text text text <br>
image | text text text <br>
image | text text text <br>
image | text text text <br>
___________| text text text (end)
</html>
I've tried this < DIV style="text-align:justify; text-justify:newspapers; padding:10px; font-size:1ุpx" > text text text text ....
but the result comes like this
______________ <br>
image | text text text text<br>
image | text text text text<br>
image | text text text text<br>
____________| text text text text<br>
text text text text text text
text text text text text text (end)
What should I do without manual putting ? (like align text first , then image and final , text) because all images and texts of my website will be fetched from the database.
I did this inside a wordpress loop, making use of the "more tag" in my post. as the tag divides the content it is easy to make the float around whatever you like. In my case it is the posts title and excerpt. I did make use of the wpauto filter, for kicking the formatting tags, coming from wordpress. My css file looks like:
And i let this index.php be served out of a blogs subdirectory:
Use
margin-top
on the floated box.Use the property align om the image tag ie,
<img src="" alt="" align="left" />
But still i depends on where the img tag is placed in the html..
http://www.w3schools.com/tags/att_img_align.asp
use Float propert in image and write text normally
Eg