Answers for "object-fit: "contain" in scss"

3

css image fit in div with aspect ratio

img {
    width: 100%;
    height: 100%; 
    object-fit: contain;
}
Posted by: Guest on July-02-2020
1

how to contain image size

overflow: 'hidden',
backgroundSize : 'contain',
Posted by: Guest on May-26-2020

Code answers related to "object-fit: "contain" in scss"

Browse Popular Code Answers by Language