how to contain an image within a div

85

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

Comments

Submit
0 Comments