how to keep image in original ration css code example
Example: keep aspect ratio of image css
img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}