+ 12

Align image to middle html

does anyone know how to align an image to the middle in html

22nd Jun 2017, 3:42 PM
Cheesy Game Studios
Cheesy Game Studios - avatar
4 Respuestas
+ 2
use CSS img{ margin:auto; display:block;}
22nd Jun 2017, 3:44 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Just use center tag dont use align in html,
25th Jun 2017, 9:39 AM
Shubham Agarwal
Shubham Agarwal - avatar
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>
24th Jun 2017, 1:30 PM
Lawal Abdulateef olawale
Lawal Abdulateef olawale - avatar
- 1
<img src="" align="center">hello world</img>
24th Jun 2017, 12:15 AM
Mina Phoenix
Mina Phoenix - avatar