How to show image in center of a div


#How to show image in center of a div:

Use this css to make the image center in a div. Its worked for me.  

#Show image in Center

.item img{    

    width: 100%;

    max-height: 350px;

    object-fit: contain;

    align-items: center;


If you have any other logic or option please comment & share with us.

Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *