+ 1

How can I set my image in center ?

image

16th Feb 2017, 9:28 PM
danial
danial - avatar
4 Answers
+ 13
<center><img /></center>
16th Feb 2017, 9:54 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
<p align="center"> <img src="1.jpg" width="100" heigth="80"> </p>
16th Feb 2017, 10:08 PM
Š Š¾Š¼Š°Š½ ŠšŃŒŃŽŃ‚
Š Š¾Š¼Š°Š½ ŠšŃŒŃŽŃ‚ - avatar
+ 2
I sometimes do it using css. Img{ margin-left:40%; }
26th Feb 2017, 4:23 PM
markdeveloper
0
<center></center> is deprecated as of HTML 4 so you shouldn't use it. The recommended way to do this is: In your css: img { display: block; margin: 0 auto; }
17th Feb 2017, 3:03 AM
ChaoticDawg
ChaoticDawg - avatar