+ 1

Image alignment

Is it possible to align an image to right,left or center or how do i do that?

31st Dec 2017, 6:48 PM
Nemanja Šolaja
Nemanja Šolaja - avatar
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
31st Dec 2017, 7:12 PM
JMQ
JMQ - avatar
+ 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>
31st Dec 2017, 7:13 PM
Elias Papachristos
Elias Papachristos - avatar
+ 1
<div style=text:align:right/> <img src=url.jpg> text-align property can have left, right or center parameters
31st Dec 2017, 11:33 PM
Luca Marseglia
Luca Marseglia - avatar