
To wrap an image by some text like the example below use the following:
HTML
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1 <div class="imgintext"><img src="http://www.domain.com/image_path/image_name.gif" alt="" /></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas accumsan. [...]  
CSS
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1 .imgintext {
2 position: relative;
3 float: left;
4 margin: 5px 10px 5px 10px;
5
Note: it is important that in the HTML code you don't use an end of line or any space between the closind div tag and the beginning of the text:
The margin property values can be changed to anything you want.
You can apply the same method to place the image on the right. In this case use float: right; instead.
Donation:If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months. |
|
Dumb Genius
Comment #1873 posted on 12-04-2006 23:48
This is easy but you have to know that such a thing exists. 


























