In creating a tribute page

How the element should be centered within its parent element.
this is my link :

<style>
    img{
   max-width: 100%;
   display: block;
   margin: auto;
    }
  </style>

I hope this helps