align left right |
|
lorem ipsum is used as filler text in these example. Just read the red and blue text. |
|
align=
|
|
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Vivamus aliquam nulla ut metus. Praesent vulputate ipsum et ligula.
Donec rhoncus lacinia nulla. Curabitur vehicula erat a erat.
Cras scelerisque eros ornare est.
All this text is typed before the image.
This is the last line typed before the image.
|
|
The img tag used in the above example is: |
|
style=
|
|
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Vivamus aliquam nulla ut metus. Praesent vulputate ipsum et ligula.
Donec rhoncus lacinia nulla. Curabitur vehicula erat a erat.
Cras scelerisque eros ornare est.
All this text is typed before the image.
This is the last line typed before the image.
|
|
The img tag used in the above example is: |
|
margin |
|
When we studied text, we looked at the box model.
Here we will put a margin around the image box.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Vivamus aliquam nulla ut metus. Praesent vulputate ipsum et ligula.
Donec rhoncus lacinia nulla. Curabitur vehicula erat a erat.
Cras scelerisque eros ornare est.
All this text is typed before the image.
This is the last line typed before the image.
|
|
break |
|
You may wish to break at the end of the line before the image
with an ordinary
You may wish to break, forcing all following lines to be below the image.
This can be done with the style
This line is typed before the image.
|
|
The following is used in the above example: This line is typed before the image. <br /> <img src="images/square.gif" alt="square" height="67" width="66" style="float: left; margin: 5px 10px 5px 0px;" /> This line is typed after the image. <br style="clear: both;" /> This line is typed after the clear break. |
|