|
Align and image wrapThere are generally three positions in which you can place your image: left, right, and center. You can position your images by adding align="" in the <img> tag or you can use <div align=""> </div> tag. It is up to you. We will show you examples of both and how they work along with text.
Left
<img src="/demo.gif" align="left" />
Center
<img src="/demo.gif" align="center" />
Right
<img src="/demo.gif" align="right" />
Now we will do the image align with the <div> </div> tags.
Left
<div align="left"><img src="/demo.gif" /></div>
![]()
Center
<div align="center"><img src="/demo.gif" /></div>
![]()
Right
<div align="right"><img src="/demo.gif" /></div>
![]() As you can see from the examples above, text wrapping can occur only with the align="" in the <img> tag. Also, you might have noticed that the <img src="/demo.gif" align="center"> tag does not work since the image is not centered. In this case, you can use this the <center> tag instead to center the image. An example would be:
<center><img src="/demo.gif" /></center>
![]() |
This is how the text will look like.