How can I align an image to the center | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How can I align an image to the center

Help me I am a beginner

10th Feb 2019, 4:08 AM
AnonimousPlay
7 Answers
+ 5
thanks Emma your method worked
10th Feb 2019, 4:35 AM
AnonimousPlay
+ 16
Write <central>tag on opening< img src >line.... N closing </center>after </img src>...
6th Mar 2019, 12:14 PM
Kaju Kishmish❤
Kaju Kishmish❤ - avatar
+ 11
<p><img src="cat.jpg"></p> or <div><img src="cat.jpg"></div> And css: p{ text-align: center; } or div{ text-align: center; } tag <center> doesn't used now.
10th Feb 2019, 12:19 PM
Женечка
Женечка - avatar
+ 5
//Without CSS <center> <img src="test.jpg"> </center>
10th Feb 2019, 5:55 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
thanks
10th Feb 2019, 4:28 AM
AnonimousPlay
+ 2
< CENTER> for html
10th Feb 2019, 10:38 AM
Paul
Paul - avatar
0
If u r using r working with html only thn use Center tag <center> <img src="img.jpg"> </center>
9th Mar 2019, 1:57 PM
Shahid Iqbal
Shahid Iqbal - avatar