+ 1
How can I set my image in center ?
image
4 Antworten
+ 13
<center><img /></center>
+ 3
<p align="center">
<img src="1.jpg" width="100" heigth="80">
</p>
+ 2
I sometimes do it using css.
Img{
margin-left:40%;
}
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;
}