¿Como alineo una imagen al centro en html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

¿Como alineo una imagen al centro en html?

Ayuda que atributo debo colocar para establecer una imagen al centro ??

8th Jan 2018, 4:25 AM
Cmurio
Cmurio - avatar
7 Answers
+ 6
agrupe mi código en un <div> y ya funcionó. de todas maneras gracias por las molestias @sebastián Zapata
8th Jan 2018, 5:07 AM
Cmurio
Cmurio - avatar
+ 5
You can use the tag <center> I.g: <center> <IMG src="image.png" alt="Image" /> </center>
21st Jan 2018, 2:55 PM
Dovahkiin
Dovahkiin - avatar
+ 4
jajajaja cierto 👍👍👍
8th Jan 2018, 5:08 AM
Cmurio
Cmurio - avatar
+ 4
Hey @Canul. Why you declined my challenge?
21st Jan 2018, 2:52 PM
Dovahkiin
Dovahkiin - avatar
+ 3
place your image inside the paragraph tag and use the align attribute to mouve it (paragraph tag) .. Example : <p align="center" ><img src="myImage. jpg" /></p>
21st Jan 2018, 3:05 PM
ONDZE ITOUA Christ Nelson
ONDZE ITOUA Christ Nelson - avatar
+ 1
puedes también con justify-content: center con display: flex en un div padre y un div hijo, hará que este siempre en el centro, ya hay le metes lo que quieras, esperó que sea así
8th Jan 2018, 5:08 AM
Review Bueno
Review Bueno - avatar
0
Intenta con text-align, eso funciona para las imágenes también
8th Jan 2018, 5:04 AM
Sebastián Zapata
Sebastián Zapata - avatar