Pusat Gambar di Div
img {
display: block;
margin-left: auto;
margin-right: auto;
width: 40%;
}
Brainy Batfish
img {
display: block;
margin-left: auto;
margin-right: auto;
width: 40%;
}
// add to the parent element
.parent {
display: grid;
place-items: center;
}
margin-left: auto;
margin-right: auto;
element {display: block; float: left; vertical-align: middle; text-align: center}