Another way to align image to the left, centre or right of the page is to use the text-align property. The html code uses the <div> tag and inline CSS style. The following are examples of how to align an image to the left, centre and right. Image will follow the left alignment of text block.
Explanation:
There are four basic ways to align text on the web:
Left. Default setting when text alignment or the direction of text is not set on a web page. ...
Right. Default setting if the direction of the language used on the web page is right to left. ...
Center. As the name implies, the text is centered on the web page.
Answers & Comments
Answer:
Another way to align image to the left, centre or right of the page is to use the text-align property. The html code uses the <div> tag and inline CSS style. The following are examples of how to align an image to the left, centre and right. Image will follow the left alignment of text block.
Explanation:
There are four basic ways to align text on the web:
Left. Default setting when text alignment or the direction of text is not set on a web page. ...
Right. Default setting if the direction of the language used on the web page is right to left. ...
Center. As the name implies, the text is centered on the web page.
Justified.