Why can't we align images using align attribute? | Sololearn: Learn to code for FREE!

+3

Why can't we align images using align attribute?

<img src="file:///storage/emulated/0/Download/Untitled.png" align="center"> why isn't this possible (the source is random, focus on the alignment)

8/12/2017 10:53:00 AM

Eyob G. Hagos

4 Answers

New Answer

+2

you need to set css text-align: center to parent

+2

<div style="text-align: center"> your img </div>

+1

Thanks @Yaroslav

0

How? Write the code for me please!