+ 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.

10th Aug 2017, 6:43 PM
Tamil Selvan
Tamil Selvan - avatar
2 odpowiedzi
+ 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
10th Aug 2017, 6:54 PM
esenia
esenia - avatar
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>
17th Dec 2017, 4:36 PM
James16
James16 - avatar