+ 2
<img src="......" align="center" /> is not working
alignment of the image is still on the left . when I tried align="right or left" it's working but not working with center
11 Answers
+ 6
<img> is an inline element.
align only works on block level element like div,p etc.
+ 9
or you can use:
<p align="center">
<img src="" />
</p>
+ 8
In html5, align attribute of img tag is not supported. <center> tag can also have problems.
Best way is to use align attribute on a div, p, span or other container and put img inside that.
Or use CSS instead.
+ 7
<div align="center">
<img src="image location"/>
</div>
+ 6
// or else, you can use <center> to make the text or paragraph in center.
+ 6
To make the image in center, you must make the display inline in block with <img> element.
+ 5
i had same problem
>try this:
<center>
<img src="......" />
</center>
+ 2
vashishth bro your method is working Thanks đ
+ 2
thanks guys for the help
0
$atnam not working bro