+ 1

How To align image In html such as middle,left or right side?

I'm try to align image to middle of web page but doesn't work please help.. I'm new.

25th Mar 2020, 11:33 AM
Chetan Atrawalkar
Chetan Atrawalkar - avatar
2 Answers
25th Mar 2020, 11:38 AM
Gordon
Gordon - avatar
+ 1
hi, you can't directly center <img/>. you must put it in a bloc tag like <p>...<p>, <div>...</div> or <span>...<\span> and give this bloc tag the style=align:center and vertical-align:middle
25th Mar 2020, 1:10 PM
Oneill~ŠžŠ½ŠµŠøŠ»Š»~億尼尔~ą¤“ą¤Øą„€ą¤²~Ų§ŁˆŁ†ŪŒŁ„~*ā€Ž
Oneill~ŠžŠ½ŠµŠøŠ»Š»~億尼尔~ą¤“ą¤Øą„€ą¤²~Ų§ŁˆŁ†ŪŒŁ„~*ā€Ž - avatar