Answers for "how to keep aspect ration in css"

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
2

aspect ratio css

aspect-ratio: 16 / 9;
// horizontal/vertical
Posted by: Guest on July-15-2021

Code answers related to "how to keep aspect ration in css"

Browse Popular Code Answers by Language