+ 2
How can I use the align attribute in HTML with center value assigned to it?
If I give the attribute align with center value assigned i.e., align="center" to it in the <img> tag the image is not moving to the center but if I give right value to the align attribute, the image moves to the right.
2 Respostas
+ 2
align="center" shouldn't be used for an img, especially because it is unsupported in html5.
would it work to try any of the options in this thread? ^_^
https://www.sololearn.com/Discuss/210974/?ref=app
0
Use the related part of the code for example <div align = "center"> <img src = "#" /> <! --do not forget about "/" because xhtml is very sensitive to this, unlike the standard html markup- -> < / div>