+ 1
Image alignment
Is it possible to align an image to right,left or center or how do i do that?
3 ответов
+ 18
<img src="smiley.gif"
alt="Smiley face"
align="middle">
align attribute can have values left, right, middle, top, bottom.
https://www.w3schools.com/tags/att_img_align.asp
+ 1
You can do it on HTML:
<p>This is an image.
<img src="happyface.jpg" alt="Happy face" align="middle">
This is image text.
</p>
+ 1
<div style=text:align:right/>
<img src=url.jpg>
text-align property can have left, right or center parameters