Centering in DIV. Both. Vertical & Horizontal. Unknown w & h

    How to center an object (img) inside a DIV block if the width and height of the picture are unknown?


    I surfed the Internet, but somehow to no avail. Separately, I see horizontal and separately vertical alignment. But how to use them together is not clear.

    Your help is needed.

    Also popular now: