0

How can i align the images?

12th Nov 2017, 2:06 AM
Arun
3 Answers
+ 7
Use CSS. <img src="image.png" style="vertical-align:middle" />
12th Nov 2017, 2:11 AM
qwerty
qwerty - avatar
+ 4
You can't align an image on img tag itself, alignment need to be done on parent tag: please check this sample: https://code.sololearn.com/WL4Trqvv2FdQ/?ref=app Note that vertical-align only applies to inline and table-cell elements: you can't use it to vertically align block level elements.
12th Nov 2017, 3:15 AM
CalviŐČ
CalviŐČ - avatar
+ 3
use align attribute. Example : <img src="gh.png" align="left"/>
12th Nov 2017, 10:30 AM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar