0

Hello Everyone,

I am just wanting to know how I would display an image at the top left of a DIV container and have text going down the right of it and then when it gets past the image, the text the prints all the way across underneith the image. (What you can do in Word).

Thanks

Daniel

4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by ansaripk
0
<div><img style='float:left'>bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla</div>

styles of course belong in the stylesheet, and the images is not properly defined

-1

Although almostbob told a good solution but if you want to use this in repeating fashion like blog posts then you should use proper css codes instead of inline coding.

For example your div is a container for your text/article.

.container {
clear:both;
width:100%;
height:auto;
}
.container img { float:left}
now you can use this as:
<div class="container">
<img src="images/imagename.jpg" alt="text" width="50" height="50"/>
<p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.