0
HTML img problem
If I add align attribute which have center value to img tag, then it doesn't work. Image don't align to center. But if I give the value right or left, it works, why?????
6 Antworten
+ 4
Maybe you can try wrapping the <img> within a <div> tag having `align` attribute set to 'center' as follows:
<div align="center"><img src="path_to_file" /></div>
+ 1
Does it give you some kind of error? Are you sure you're spelling center correctly?
+ 1
Hmm, this can work!
+ 1
Glad to know it works 👍
+ 1
Thanks all for giving their suggestions
0
Yes I'm spelling correctly, but giving the center value for align attribute in img tag does not working in HTML, while right and left values are working, you can check this.