Changing the Image AlignmentWritten by Brad Markle
In the last tutorial of this series, you learned how to add a basic image to your website. Often you will need to change the alignment of the image on the page. This can be done by modifying you image tag in the HTML code. We will use the same code as we did in the previous tutorial.
<img src="/support/Images/my-image.jpg" />
Now we will change the alignment. For the alignment of the image, you have a few options:
If we have an image that we want to appear in the middle of the page, we will use the "middle" alignment tag. The align tag will go in the same code as the img src, like this:
<img src="/support/Images/image.jpg" align="middle">
The image will now appear in the middle of the page. When an image is aligned in this method, the text will appear above or below the image.
Please check the next article on Changing the Size of an Image. If you missed our previous article, please see the Inserting Images using HTML tutorial. For more information on this course please visit Inserting Images into a Website
Inserting Images into a Website
|1.||Inserting Images using HTML|
|2.||Changing the Image Alignment|
|3.||Changing the Size of an Image|
|4.||How to make an Image a Link|
|5.||Align and float images with CSS|