+ 1
How can we align our image to center?
<img src=" " align="center"/> why this code format is not working
4 Answers
+ 10
Put the <img> inside a <div> and set that div's CSS as "text-align:center;".
+ 5
If you want to align image only by using html you can use:
<p align="center">
<img src=" "/></p>
or use css
+ 3
The html attribute 'align' is to be avoided, as it's deprecated in Html5: you must use css instead ^^
Previous post answers for horizontal alignement... for vertical alignement, check this code:
https://code.sololearn.com/WewcrAlN1m8k/?ref=app
+ 2
css for image parent{
text-align: center;
}