gambar pusat CSS
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
Unusual Unicorn
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
img { display:block;
margin-left: auto;
margin-right:auto;
}
<img src="myImg.png" class="center">
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
.centerImg {
display: block;
margin: 0 auto;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
.someclass {
display: block;
margin-left: auto;
margin-right: auto;
}