+ 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
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
+ 1
u can use CSS..
img{
margin:auto;
display:block;
}