Answers for "image aspect ratio css properties"

CSS
0

keep aspect ratio of image css

img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
Posted by: Guest on April-29-2020

Code answers related to "image aspect ratio css properties"

Browse Popular Code Answers by Language