+ 12
Align image to middle html
does anyone know how to align an image to the middle in html
4 Answers
+ 2
use CSS
img{
margin:auto;
display:block;}
+ 1
Just use center tag dont use align in html,
0
<h4>Image with align="middle":</h4>
<p>This is some text. <img src="smiley.gif" alt="Smiley face" width="42" height="42" align="middle"> This is some text.</p>
- 1
<img src="" align="center">hello world</img>