+ 1

How should i get an image in center of page?

I used this code- <img src="xyz.jpg" align="center" /> it doesn't work, can anybody tell me right code

18th Jun 2017, 8:28 AM
keshav agarwal
keshav agarwal - avatar
2 odpowiedzi
+ 2
This should make things clear :) add the <img> in a <div> tag and set the div's align attribute to center. Like so: <div align="center> https://code.sololearn.com/WAn8Xjg2n3G8/?ref=app
18th Jun 2017, 8:39 AM
Limitless
Limitless - avatar
+ 1
u can use CSS.. img{ margin:auto; display:block; }
18th Jun 2017, 11:13 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar