how to make same image ratio for different image size code example Example: css keep image ratio img { object-fit: cover; width: 100px; height:100px; }