html css how to make sure format image is ratio code example Example: css keep image ratio img { object-fit: cover; width: 100px; height:100px; }