how to put image center in html stack overflow
snippet in html

how to put image center in html stack overflow

user9507

img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -(X/2)px;
    margin-top: -(Y/2)px;
}