0

Where can i put the (align="center") so that only the image will be centered excluding the text?

So my problem is that i don't know where do to put the (align="center") so that only the image gets centered excluding the text cause the usual way i do it is this: <p align="center> random text <img src="random.jpg" alt=" "> The result is that all of them are centered including the text but i just want the img to be in the center. Anybody know where do i properly put it? PS: Sorry if my english is broken

16th Jun 2018, 4:56 AM
Neel Roda
Neel Roda - avatar
5 ответов
+ 4
The image doesn't appear to want to load on mobile, so use the complete URL. <p>Test<img src = "http://www.sololearn.com/images/tree.jpg" align = "center"></p>
16th Jun 2018, 5:07 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
<p>Test<img src = "images/tree.jpg" align = "center"></p>
16th Jun 2018, 5:01 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Hatsy Rei I posted the same answer, then I went and checked it in playground. it doesn't worked and I deleted my answer. have you checked it?
16th Jun 2018, 5:02 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
Thanks for the Answer!
16th Jun 2018, 5:02 AM
Neel Roda
Neel Roda - avatar
0
I checked it just now but it didn't
16th Jun 2018, 5:05 AM
Neel Roda
Neel Roda - avatar