HTML tips

Stock Photography Community


Let images float beside your text

With the following code you can have images float besides the text on a web page.

style="float: right; margin-right: 30px;"

Replace right with left to have the image placed to the left of the text.

This is an example of an image that would be placed to the right of the text with a margin of 30 pixels between the text and the image.

<img width="100" height="75" border="0" style="float: right; margin-right: 30px;" src="/files/image/thumbnail.jpg" alt="text" />